Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13352
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: error code 50 |
| Date | 2021-06-24 21:35 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <sb2mqq$g12$1@dont-email.me> (permalink) |
| References | (4 earlier) <04f23ecf-226a-4b27-b7e9-457ab8cb17f8n@googlegroups.com> <ijh1a3Fdg78U1@mid.individual.net> <9295928d-94c2-4415-8dc5-2973418f02a9n@googlegroups.com> <sb2c2t$rmk$1@dont-email.me> <afed54d1-b15b-4aca-b52e-db0163ab7990n@googlegroups.com> |
And what is the code in CellDoubleClick so we can see
SUBMENUDEMNOW:CELLDOUBLECLICK (Line:17) ?
Op 24-6-2021 om 19:12 schreef aurora baccio:
> Il giorno giovedì 24 giugno 2021 alle 18:32:31 UTC+2 JohnMartens ha scritto:
>> If you are "ready" with your dialog because you have finished in a
>> method what you want to do just call SELF:EndDialog()
>>
>> John
>>
>>
>> Op 24-6-2021 om 15:58 schreef aurora baccio:
>>> Il giorno mercoledì 23 giugno 2021 alle 17:12:04 UTC+2 Wolfgang Riedmann ha scritto:
>>>> 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
>>>>
>>>> --
>>>
>>>
>>> good morning,
>>> I have come to the conclusion, I hope correct, that the source of my problems are these two lines of code contained in the double-click method
>>> *DeleteChildWindow(self:Owner:Caption)
>>> *self:Owner:Destroy()
>>> as you can see they have been disabled and the problem has disappeared.
>>> These two lines should destroy the whole mask named RequestFiscalCode, a data dialog in which there is the list of appointments of the day, displayed in a subdatawindow.
>>> The first self:Owner should close the subData, while the second should close the datadialog, at least I think so since the entire mask disappears.
>>> Once the two lines are deleted, the datadialog remains active, as does the subdata.
>>> At the end of the procedure I would like to reset it, how do I do it?
>>> thanks
>>> Aurora Baccio
>>>
> good evening,
> I had already tried this solution
> here is the answer that I cannot solve
> Visual Objects (Version 2.8. Build 3.2838), Version 2.8 SP4b
> 24-06-2021 19:08:27
> Application: c:\Prg28CardioReceipt.DBG
>
> Error message:
> --------------
> Error Code: 13 [ NO EXPORTED METHOD ].
> Subsystem: BASE
> Function: SEND
> Argument: SEND_MASCHERA:ENDDIALOG
> CallStack:
> SUBMENUDEMNOW:CELLDOUBLECLICK (Line:17)
> MAINWINDOW:LAUNCH (Line:13)
> APP:START (Line:441)
> START (Line:6)
>
> Translated with www.DeepL.com/Translator (free version)
>
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