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.
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
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.
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
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.