Debug code won't die gracefully.
-
I have a database app which runs OK so far except for when I close the form by clicking the X the myprogram.exe process is left still running. Subsequent debug runs fail to start because the myprogram.exe file is still open and can't be updated by the debugger. Even if I quit VS2005 completely the myprogram.exe process is still running and has to be killed manually in Task Manager. This program utilizes a Pervasive v.9 ODBC driver to an existing database on a server. I used the Querry builder and drag/drop to build the form which uses a DataGridView control and several label controls to display the rest of the row that is selected in the DataGridView control. Is there something I should be doing to properly close everything down in re: the ODBC driver? Thanks Edwin
-
I have a database app which runs OK so far except for when I close the form by clicking the X the myprogram.exe process is left still running. Subsequent debug runs fail to start because the myprogram.exe file is still open and can't be updated by the debugger. Even if I quit VS2005 completely the myprogram.exe process is still running and has to be killed manually in Task Manager. This program utilizes a Pervasive v.9 ODBC driver to an existing database on a server. I used the Querry builder and drag/drop to build the form which uses a DataGridView control and several label controls to display the rest of the row that is selected in the DataGridView control. Is there something I should be doing to properly close everything down in re: the ODBC driver? Thanks Edwin
It sounds to me that you have a threading-problem, with a thread running when you close the form. This will result in the form disappearing, but another thread keeping the process alive. Try the Closing event for the Form, and make sure you shut down all threads (might be some database-shutdown command or similar to shutdown/disconnect teh database correctly).
Internet - the worlds biggest dictionary