[futurebasic] RE: [FB] New kind of crashes with OSX ?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2004 : Group Archive : Group : All Groups

From: "H. Gluender" <h@...>
Date: Fri, 5 Mar 2004 20:37:53 +0100
Dear Waverly, dear Robert

thanks for your responses that in turn I don't fully understand...

W.E.
"I don't understand why (as a part of your handler) you don't hide, then close
the sheet, followed by the closing of the parent if need be."

R.C.
"I do that and seems to work fine. I have a "Close All" button which
hides , then closes the sheet window and also the dialog from which it
sprung. I've no report of crashes from anyone. ..."


1)
The sheet I'm speaking of is a standard alert sheet attached to a 
parent window that is movable modal.

2)
This standard alert sheet has a single OK button that closes it 
_automatically_.

3)
I don't detect the OK button event but continue with my code after 
having called  ShowSheetWindow(...). This continuing code immediately 
leaves the parent movable modal dialog and its event loop.

4)
Apparently, it can happen that the parent dialog is already closed 
when the standard alert sheet closes automatically, although one 
would expect it the other way round, and this leads to crashes as it 
has been confirmed by Apple.

5)
Actually I use Carbon Events, but I don't think that this is 
essential for the very crashing behavior. However, it is essential 
for one of the solutions I've sketched in my original post.

6)
I don't "hide" a window, because there is nothing to hide.
Pressing the OK button of my alert sheet closes it (fine) and I want 
to close the parent dialog window immediately afterwards. However, 
this "immediately afterwards" sometimes appears to be a "slightly 
before it"...


I hope that this clarifies the issue. (Sorry for the delay but I'm on 
List Digest.)

Best
-- 


                   Herbie

          ------------------------

          <http://www.gluender.de>