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


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

Re: Strange crash in a screen Init

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Strange crash in a screen Init
Date 2016-08-09 08:00 +0200
Message-ID <e0t9rdF4q3hU1@mid.individual.net> (permalink)
References <noabne$c41$2@dont-email.me>

Show all headers | View raw


Hi Martin,

> I added a couple of browses to a screen and new it is crashing on
> Init()
> 
> Anyone have any ideas please?

as always, you are giving very good indications about your code (and as
always in your posts you are assuming that your code has no error, but
it is the upstream code that fails - GUI classes, RDD classes).

When I have learned something in my work, then it is that I'm the one
that fails most of the time - very rarely it is upstream code that
fails because it is much more tested than my own code.

But in this case I suspect that either you don't have a call to
super:Init() in the window class or you try to add the button before
the call to super:Init(), so you try to add a pushbutton to a
non-initialized window. If argument 0 is the error, it is the class on
which you call a method that is null_object.

But since you don't show the offending code line, we can only imaginate
where your problem lies.

Wolfgang

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


Thread

Strange crash in a screen Init Martin <Martin@spam.spam> - 2016-08-08 17:24 +0100
  Re: Strange crash in a screen Init D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2016-08-08 23:10 +0200
    Re: Strange crash in a screen Init Martin <Martin@spam.spam> - 2016-08-08 23:46 +0100
    Re: Strange crash in a screen Init Martin <Martin@spam.spam> - 2016-08-09 09:04 +0100
      Re: Strange crash in a screen Init Robert van der Hulst <rjvanderhulst@gmail.com> - 2016-08-09 02:08 -0700
        Re: Strange crash in a screen Init "Jamal" <noooospam@example.com> - 2016-08-11 00:35 -0400
          Re: Strange crash in a screen Init Martin <Martin@spam.spam> - 2016-08-11 14:48 +0100
  Re: Strange crash in a screen Init "Wolfgang Riedmann" <wriedmann@gmail.com> - 2016-08-09 08:00 +0200
    Re: Strange crash in a screen Init Martin <Martin@spam.spam> - 2016-08-09 12:06 +0100

csiph-web