Thanks Dennis. I tried putting exception handlers for EndException in
the close events for both the window and the app. Still shows the
same problem - an EndException is apparently not being thrown (I put
a MsgBox in the Exception block but don't see one when the program
runs). Is there anything else I can do to track closer to the source
of the problem?
Thanks,
Ian.
--
On 5 Feb 2007, at 4:31 am, Dennis Birch wrote:
On 2/4/07, Ian Piper <[EMAIL PROTECTED]> wrote:
Hi all,
I have just moved from RB 5.5 to RB 2007 in order to update a piece
of software that I have written. Sadly a big problem seems to have
arisen. When I run my program, either in debug mode or in its
compiled form, it compiles, runs and behaves as it always has, but
when I quit it throws up the "The application quit unexpectedly"
message. I have put a whole set of debug statements in place but it
looks like the problem arises *after* the last point in my code where
I call Quit. Behaviour is the same whether I call cmd-Q or close the
main window. However I probably should mention that if I have not yet
shown the main window (there is a login window that is shown first
and enables a quit before the main window is loaded) then I can quit
without the error. So it seems related to showing the main window.
I couldn't find anything on this in the archives, though there is
something similar on the feedback system (id=liqmittz): can anyone
suggest what might be amiss? I'm happy to share the crash log if
anyone wants to see it.
I would try putting an exception handler in your App.Close handler
along with a break statement to see if you are getting an
EndException. I seem to recall having run into that before. If that is
causing the problem, (and if I remember correctly) you can code around
it by simply adding a comment to your code (or probably doing nothing)
when you encounter an EndException, as in:
Exception err
if err isa EndException
//
You might want to enhance this by dealing with other types of
exceptions.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>