Hi
I'm at a point that I receive a hard crash with wxpython. I really have no
clue where the crash is happening. All I know is, that it happens when I
close down the app (it's a hard crash - so no backtrace)
I beleive it's one of the common pitfalls on wxpython. Could someone tell me
how to debug or find the cause of such crashes?
Thanks
Benjamin Schindler
I don't know how much it helps BUT look very carefully at your event handlers, guard them, I used to get some crashes because of some focus handlers that triggered some actions... problem is that when closing the event handlers were triggered and... app crashed because the components that I was trying to update were in the process of being destroyed. A lot of those crashes are due to dead objects.
do something like:
def if_not_closing(func):
def wrapper(*args):
if not args[0].closing:
return func(*args)
else: return None
return wrapper
and then
decorate the methods that will update your controls 
@if_not_closing
def UpdateViews(...
Peter.
ยทยทยท
On Tue, 04 Oct 2005 15:08:54 +0300, Benjamin Schindler <bschindler@student.ethz.ch> wrote:
Hi
I'm at a point that I receive a hard crash with wxpython. I really have no
clue where the crash is happening. All I know is, that it happens when I
close down the app (it's a hard crash - so no backtrace)
I beleive it's one of the common pitfalls on wxpython. Could someone tell me
how to debug or find the cause of such crashes?