G
Guest
First off, I'm a hardware/OS guy. I just write code on the side and I'm
completely self taught - so bear in mind my total lack of expertise.
I have a program originally written in VB2003 using the dotnet 1.1
framework. The program makes extensive use of Win32 API calls to help manage
and track remote access sessions with out clients. I've left it running for
days at a time on my system with no problems. It has always been stable.
I recently upgraded the program to VB2005 using the upgrade wizard. It
seemed to port cleanly with only minor cleanup needed (such as 2005 needing
more explicit references. i.e. "if result = dialogresult.yes" becoming "if
result = windows.forms.dialogresult.yes"). The problem is that under dotnet
2.0 the program is unstable. If I leave it minimized for several hours then
try to acess it from the taskbar, the program form will just display as a
blank white form. No actual error occurs, the form is just white. Task
manager shows the process running normally. It goes to not-responding when
you try to close it and has to be force closed. I have try...catch clauses
around everything and as far as I can tell, no exceptions are occuring. The
problem only occurs if the program has been idle for a long time. It's as if
Windows has simply decided to quit drawing the form.
Obviously no one can tell me exactly what's happening, my problem is that I
don't have even the vaguest idea how to start debugging something like this.
How do you troubleshoot a program that just hangs without causing an error?
Can somebody recommend an article or website (or even a book) that gives a
general debugging process for something like this?
completely self taught - so bear in mind my total lack of expertise.
I have a program originally written in VB2003 using the dotnet 1.1
framework. The program makes extensive use of Win32 API calls to help manage
and track remote access sessions with out clients. I've left it running for
days at a time on my system with no problems. It has always been stable.
I recently upgraded the program to VB2005 using the upgrade wizard. It
seemed to port cleanly with only minor cleanup needed (such as 2005 needing
more explicit references. i.e. "if result = dialogresult.yes" becoming "if
result = windows.forms.dialogresult.yes"). The problem is that under dotnet
2.0 the program is unstable. If I leave it minimized for several hours then
try to acess it from the taskbar, the program form will just display as a
blank white form. No actual error occurs, the form is just white. Task
manager shows the process running normally. It goes to not-responding when
you try to close it and has to be force closed. I have try...catch clauses
around everything and as far as I can tell, no exceptions are occuring. The
problem only occurs if the program has been idle for a long time. It's as if
Windows has simply decided to quit drawing the form.
Obviously no one can tell me exactly what's happening, my problem is that I
don't have even the vaguest idea how to start debugging something like this.
How do you troubleshoot a program that just hangs without causing an error?
Can somebody recommend an article or website (or even a book) that gives a
general debugging process for something like this?