Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13348
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: error code 50 |
| Date | Wed, 23 Jun 2021 17:12:01 +0200 |
| Lines | 37 |
| Message-ID | <ijh1a3Fdg78U1@mid.individual.net> (permalink) |
| References | <f75c62ec-6104-4b64-aba0-f94b99b34533n@googlegroups.com> <ije9ioFrt0dU1@mid.individual.net> <e18ae42c-916f-41e8-92b9-1ef381babe50n@googlegroups.com> <ijgc81F9glmU1@mid.individual.net> <04f23ecf-226a-4b27-b7e9-457ab8cb17f8n@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| X-Trace | individual.net HTXtIblI0Z2tbg2tM4PcPAHm8jkUAVOdBDl53fNdLqj6EGHmU= |
| Cancel-Lock | sha1:ApzNre7KSDX9gD4ILcbyhXX7yjM= |
| User-Agent | XanaNews/1.18.1.6 |
| Xref | csiph.com comp.lang.clipper.visual-objects:13348 |
Show key headers only | View raw
Hi Aurora,
as I wrote: never call Destroy() on a window.
> going by logic the problem arises only after double click in the
> subdatawindow
>
> here is the method :
01 > AAdd(aParam,self:Owner:Server:CodOperato)
02 > AAdd(aParam,self:Owner:Server:CodFisc)
03 > AAdd(aParam,4) // start from double click
04 > AAdd(aParam,"")
05 >
06 > DeleteChildWindow(self:Owner:Caption)
07 > self:Owner:Destroy()
08 >
09 > oMenuDemNew:=
10 > oMenuDemNuovo_Maschera{self:Owner:Owner,,,aParam}
11 > FabCenterWindow(oMenuDemNew)
12 > oMenuDemNew:Show()
this is clear (I have added numbers to the lines):
in line 07 you are calling Destroy() on self:Owner, so you are cleaning
it effectively up.
But in line 10 you are accessing a member of an already destroyed
window.
I see at least two possibilities:
- store the self:Owner:Owner to a local variable before destroying the
self:Owner and use this variable instead of the self:Owner:Owner
- store the shell window (this should be the self:Owner:Owner?) to a
sort of global and retrieve it always from them.
Wolfgang
--
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
error code 50 aurora baccio <aurorabaccio@gmail.com> - 2021-06-22 05:51 -0700
Re: error code 50 "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-06-22 16:14 +0200
Re: error code 50 aurora baccio <aurorabaccio@gmail.com> - 2021-06-22 11:33 -0700
Re: error code 50 "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-06-23 11:12 +0200
Re: error code 50 aurora baccio <aurorabaccio@gmail.com> - 2021-06-23 04:45 -0700
Re: error code 50 "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-06-23 17:12 +0200
Re: error code 50 aurora baccio <aurorabaccio@gmail.com> - 2021-06-24 06:58 -0700
Re: error code 50 JohnMartens <martens@tennishulp.info> - 2021-06-24 18:32 +0200
Re: error code 50 aurora baccio <aurorabaccio@gmail.com> - 2021-06-24 10:12 -0700
Re: error code 50 JohnMartens <martens@tennishulp.info> - 2021-06-24 21:35 +0200
Re: error code 50 aurora baccio <aurorabaccio@gmail.com> - 2021-06-25 05:41 -0700
Re: error code 50 JohnMartens <martens@tennishulp.info> - 2021-06-25 16:49 +0200
Re: error code 50 aurora baccio <aurorabaccio@gmail.com> - 2021-06-25 23:33 -0700
Re: error code 50 JohnMartens <martens@tennishulp.info> - 2021-06-26 08:58 +0200
Re: error code 50 "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-06-27 07:16 +0200
Re: error code 50 "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-06-27 14:32 +0200
Re: error code 50 aurora baccio <aurorabaccio@gmail.com> - 2021-06-30 06:00 -0700
Re: error code 50 "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-06-30 17:13 +0200
csiph-web