[futurebasic] Re: [FB] Program Crashing on Exiting FN

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Tue, 21 Sep 1999 13:26:28 -0700
pochas wrote:

> >I have a FN that calls a Modal Dialog. One of the Buttons on the Dialog Calls
> >another FN that brings up an Alert. When the first FN is called and any
> of its
> >other Buttons are used, there is no problem; but, when the button is clicked
> >that summons the other FN with it's Alert, after closing the Alert and then
> >closing the Modal Dialog for the first FN, I get a crash - t
>
> [snip]
>
> >TIA, Joe Wilkins
>
> I fought the same fight.  I concluded that with modal dialogs it is not
> safe to leave the dialog up and call local functions to do calculations
> to replace values in the dialog.  Use a regular window if you have to do
> this.  Make it modal by using the modal dialog constant in the Window
> build statement.  (FB II)
>
>   WINDOW 18,"Tracks",(  25,  66)-( 407, 227),-1285
>
> With modal dialogs, get the info and close the dialog.  Do calculations later.

Thanks loads for the confirmation Charley! I had just started to do exactly as
you suggest and was looking for the "dingus" that would make the window modal.
That is the "-1285" that you indicate above - a minus Type? In the past, I have
just used an EF and monitored the location of the Mouse.

Joe Wilkins