Visual Basic Dot Net program - strange crashing problem - main form disappears
Posted on 2004-08-26
I have a VB.NET program that occassionally (and I havent been able to find out exactly what is different on the times that it crashes and does not crash) will crash.
The strange thing about it is that (1) the main form that the code is running from disappears, but the code for objects that it has called keeps running until it has completed, and also a a Model that launches the Main Form continues to run until it also has run all lines of code (2) I do not get any specific error message, and even though I have error trapping with Try-Catch loops all over the place, I cant seem to find what is failing.
The help I'm looking for is some good diagnostic advice on how to narrow down this problem. For instance, the fact an object that my main form has called keeps running after the main form crashes, what does this indicate?
Here is a rough (simplified) sketch of the program:
The Main module creates form1 as a showdialog (form1.showdialog)
Form1 creates some objects. Those objects run some code as part of certain property calls
Form1 disappears during a call to a property of an object possibly? (Form1 is no longer visible in the task bar)
objects continue running code,
main module runs ending code...
Thank you for the help.