Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13361

Re: error code 50

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: error code 50
Date 2021-06-30 17:13 +0200
Message-ID <ik3g0qFu5dmU1@mid.individual.net> (permalink)
References (4 earlier) <04f23ecf-226a-4b27-b7e9-457ab8cb17f8n@googlegroups.com> <ijh1a3Fdg78U1@mid.individual.net> <9295928d-94c2-4415-8dc5-2973418f02a9n@googlegroups.com> <ijr9e3Fca8mU1@mid.individual.net> <f104f88f-25e4-4f95-903a-a7a3e105f0abn@googlegroups.com>

Show all headers | View raw


Hi Aurora,

I'm really sorry that you don't understand what I mean.

Please look again at your original code (and that is why the error
disappeared when commenting the "self:Owner:Destroy()" line):

self:Owner:Destroy() 

You are destroying the object that is contained in self:Owner

And then in the next line:

oMenuDemNuovo_Maschera{self:Owner:Owner,,,aParam} 

you are accessing the object that is contained in the self:Owner:Owner.

Please remember: you have destroyed self:Owner before, so you cannot
access self:Owner:Owner anymore!!!!

Unfortunately the runtime error caused by this is occurring later, deep
in the GUI classes code, when the GUI classes are using the handle that
is pointing somewhere, but not to a valid window handle.


And it seems you have not understand what John and I both tried to
explain:
if self:Owner is inherited from a DialogWindow, it has a EndDialog
method to close it.
if self:Owner is inherited from a DataWindow or a DataDialog, it has a
EndWindow method to close it.

So, if the VO compiler complains that there is no EndDialog method,
then you have to use the EndWindow method.
Since we don't know not your complete code, it is difficult for us to
understand what kind of object self:Owner is.

Wolfgang

P.S. it seems that you have some talent to misunderstand what we mean

P.P.S. I'm far from undervaluating women in IT: I'm running the company
together with my wife, and she is a very good programmer. Unfortunately
we have much too less women in the IT business....


-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


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