Please find the patch for an issue related to the debugger in gtk (linux).
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 5 May 2009 10:05:57 +0000 (10:05 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Tue, 5 May 2009 10:05:57 +0000 (10:05 +0000)
commit50d63ccd6cf37479a667180de11e300fa3dfb5ac
tree92addcc3cd3db21476c87e994ae20de529e41e27
parentddc40a7a581ed671b950e04b9d7389fe96f4f99e
Please find the patch for an issue related to the debugger in gtk (linux).

Please find the steps to reproduce this issue:
1. Right click any pl/pgsql function without any parameter. Select
   Debugging->Debug.
2. It will open the debugger window.
3. Select File->Exit from menu.
4. Press 'yes' for the below question:
   "Are you sure you wish to abort the debugging session?
    This will abort the function currently being debugged."
5. Close main window.
6. This will gives you the following message and wait for all threads to be
   getting killed.
   "TIME WITH TIMEZONE: Debug: 1 threads were not terminated by the application."

I found that - we're creating two dbgPgConn object, one in ctlCodeWindow and the
other in dlgDirectDbg. Both creates their own threads (dbgThread object).

When we abort debugging, somehow it is not calling the Close function of the
dlgDirectDbg only on linux (wxGTK). Hence, the thread created in dlgDirectDbg is
not get killed/stopped in this case.

[Ashesh Vashi]

git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7838 a7884b65-44f6-0310-8a51-81a127f17b15
pgadmin/debugger/ctlCodeWindow.cpp