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


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

Re: Strange crash in a screen Init

From "Jamal" <noooospam@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Strange crash in a screen Init
Date 2016-08-11 00:35 -0400
Organization albasani.net
Message-ID <nogvae$o3e$1@news.albasani.net> (permalink)
References <noabne$c41$2@dont-email.me> <71thqbdfpprbtj21vlou9rojbdnmhup53m@4ax.com> <noc2pb$hj1$1@dont-email.me> <d5f64b38-222a-4135-a728-669f841f70cf@googlegroups.com>

Show all headers | View raw


Robert,

May be he think people here are fortunetellers that can read his mind! And 
if that does not work, he'll blame the 'other' mysterious developer as in 
the 'Wrong Field Specification" thread!

Jamal

"Robert van der Hulst"  wrote in message 
news:d5f64b38-222a-4135-a728-669f841f70cf@googlegroups.com...

Martin,

I am glad that it works now.
However I agree with Wolfgang that it does not really help to post questions 
here without showing us your source code.
That is like going to the doctor but now allowing him to examine you...

Robert

> I completely remodelledthe screen
>
> Followed the old layout still
>
> Push button names on group boxes
>
> So created a new dialog, ctrl C V onto the new screen
>
> sub classedback to original now OK
>
> On 08/08/2016 22:10, D.J.W. van Kooten wrote:
> > Replying on message of Mon, 8 Aug 2016 17:24:18 +0100 from Martin:
> >
> >
> >  Hello Martin,
> >
> >> I added a couple of browses to a screen and new it is crashing on 
> >> Init()
> >>
> >> Anyone have any ideas please?
> >
> >
> > I haven't seen that one for years. Actually I mentioned having that
> > problem in a disucssion in this NG about that problem - in 2008. So I
> > assumed it was gone with newer Windows versions. Do you have this
> > problem on an old Windows by any chance?
> >
> > Below is what I found, maybe one of these helps you?
> >
> > Dick
> > ===============
> >
> > Karl Wochele wrote on 6-10-2008:
> >
> > there is a limit of 10000 GUI-Objects in Windows. Above this limit
> > your
> > app will crash. You can check the amount of objects with
> >
> > nObjects := GetGuiResources(GetCurrentProcess(),GR_GDIOBJECTS))
> >
> > _DLL FUNC GetGuiResources(hProcess AS PTR,uiFlags AS DWORD) AS DWORD
> > PASCAL:USER32.GetGuiResources
> > DEFINE GR_GDIOBJECTS := 0
> > DEFINE GR_USEROBJECTS := 1
> >
> > If this number is growing, you have a leak somewhere in your code,
> > such
> > as icons, bitmaps or device contexts which are not released.
> >
> > (and the suspect was the RTF control).
> >
> > On 31-3-2003, Don Carslaw  wrote:
> >
> > The only reliable workround I could come up with was to error-wrap the
> > dialog Init() and catch the error.
> > // this is just parts of the code
> > oOldErrorHandler := ErrorBlock({|o| _Break(o)})
> > BEGIN SEQUENCE
> > // there is sometimes the following error here:
> > // "Description     :Dialog creation from resource failed"
> > oDlg := MainTabDialog{SELF}
> > RECOVER USING oError
> > IF oError:Description = "Dialog creation from resource failed"
> > //
> > non-exact !!!
> > cMsg := oError:description + CRLF + ;
> > "Your workstation may be low on resources." + CRLF + ;
> > "Please try again after closing some applications." +
> > CRLF + ;
> > "Please contact support if problem persists." + CRLF +
> > CRLF + ;
> > "This application will now shut down" + CRLF
> > ENDIF
> > // Then display cMsg and bail out!
> > END SEQUENCE
> >
> > --- news://freenews.netfront.net/ - complaints: news@netfront.net ---
> > 

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