----- Original Message ----- 
From: "Brigitte Spatz" <[EMAIL PROTECTED]>
>I have a form that is created at runtime. It contains a page control
> with four pages, one of which is a selection (radio group) where the
> user selects which of the other three pages to display. The selection
> page is displayed every time one of the other three has been shown and
> the user clicks the Continue button. There's also a Cancel button. Now
> for some completely mysterious reason the form closes when the selection
> page is displayed after one specific page has been displayed but not
> after the other two have been displayed. There's nothing in the code
> that would call Close or CancelButtonClick (which contains Close, but
> I've put a breakpoint in there and as expected the method wasn't
> executed), so I haven't got the faintest idea why on earth the form
> closes at this specific instance. The selection page's OnShow code is
> still exectued (I've put a ShowMessage in there).
>
> Has anybody ever heard of anything like this?

Not exactly.  Some OTTOMH thoughts: Have you tried turning on debug units in 
compiler options, rebuilding and then tracing it from the point where you 
click/perform an action to see if you can determine like this where forms 
gets closed from?  Does the OnClose/OnCloseQuery events fire?  Can you put 
breakpoints on them and do they break?  If so, does the call-stack when 
stopped at this point give a clue as to how what calling sequence happened 
to generate the form closure event?   Can you isolate/reproduce the 
behaviour in a dummy skeleton app that reproduces the behaviour?  If so then 
please post it on Borland's news server's attachments group (or wherever) so 
we can have a look at it.

Walter

--
Walter Prins
prins at ananzi dot co dot za
"For every complex problem, there is a solution that is simple, neat, and 
wrong"  - H.L. Mencken



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to