Process not exiting with wxDialog

Hi Folks,

I'm having a problem with my app where the process seems to hang on exit
if I have displayed a custom dialog box (my own class derived from
wx.Dialog). It seems like the dialog is starting a thread that isn't
exiting.

Are you creating a thread when you create the dialog? Have you set
those threads to be "daemonic" (th.setDaemon(1))?

- Josiah

···

"Ron Griswold" <RGriswold@Rioting.com> wrote:

Here's the sequence of events:

1) from cmd line launch app
2) in app open my dialog (ShowModal)
3) close dialog (EndModal, dialog closes fine and control is restored to
the app)
4) close app (command prompt is not returned, I have to ctl-C to kill
it)

I have checked this on Win32, Linux and OSX; all three exhibit the same
behavior so it wouldn't appear to be platform related.

Is it something I'm doing (or more likely, not doing), or is this a
known behavior?

Thanks,

Ron

P.S. If I follow the steps above but don't open the dialog the process
does terminate correctly.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org