Problem with terminating frames under Linux

Hello, all,

I have some problems to terminate the whole application under Linux
which actually works perfectly under Windows.
Are there some rules? (When trying to terminate, seems like a crash:
no response, you have to force close.)

Also to terminate the logger under Windows, sometimes can not work
(10% failed)even though I removed the logger handler before
termination.

Because that the code is too big, I can not upload it here, I used
logger function there, multithreading also, of course couple of
frames.

Any help is appreciated:)

Reb

Hello, all,

I have some problems to terminate the whole application under Linux
which actually works perfectly under Windows.
Are there some rules? (When trying to terminate, seems like a crash:
no response, you have to force close.)

Which version of wxPython? Could there be any other frames or dialogs that may not be visible but that haven't been closed or destroyed? How about a wx.TaskBarIcon?

Also to terminate the logger under Windows, sometimes can not work
(10% failed)even though I removed the logger handler before
termination.

Failed in what way?

Because that the code is too big, I can not upload it here, I used
logger function there, multithreading also, of course couple of
frames.

There are more reasons for making a sample app to show the problem than just making it smaller. See MakingSampleApps - wxPyWiki

···

On 12/6/10 2:00 AM, wong rebecca wrote:

--
Robin Dunn
Software Craftsman

Hi, Robin,
thank you for your reply. I finally figured out. It is because some thread still running sometimes, I have to yield control explicitly to thread to stop itself then force shutdown. Seems Linux are using different scheduling as Windows. Is it? so maybe that is why under Linux we can not stop the thread properly sometimes.

Thank you.

Reb

···

2010/12/6 Robin Dunn robin@alldunn.com

On 12/6/10 2:00 AM, wong rebecca wrote:

Hello, all,

I have some problems to terminate the whole application under Linux

which actually works perfectly under Windows.

Are there some rules? (When trying to terminate, seems like a crash:

no response, you have to force close.)

Which version of wxPython? Could there be any other frames or dialogs that may not be visible but that haven’t been closed or destroyed? How about a wx.TaskBarIcon?

Also to terminate the logger under Windows, sometimes can not work

(10% failed)even though I removed the logger handler before

termination.

Failed in what way?

Because that the code is too big, I can not upload it here, I used

logger function there, multithreading also, of course couple of

frames.

There are more reasons for making a sample app to show the problem than just making it smaller. See http://wiki.wxpython.org/MakingSampleApps

Robin Dunn

Software Craftsman

http://wxPython.org

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

Yes, there are differences in threading implementations across platforms, although Python is good at abstracting those differences so you don't really notice the differences much.

···

On 12/14/10 1:55 AM, wong rebecca wrote:

Hi, Robin,
thank you for your reply. I finally figured out. It is because some
thread still running sometimes, I have to yield control explicitly to
thread to stop itself then force shutdown. Seems Linux are using
different scheduling as Windows. Is it? so maybe that is why under Linux
we can not stop the thread properly sometimes.

--
Robin Dunn
Software Craftsman