<span class="gmail_quote">On 9/14/07, <b class="gmail_sendername">Matt Newell</b> <<a href="mailto:newellm@blur.com">newellm@blur.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Friday 14 September 2007 07:14, Arve Knudsen wrote:<br>> I want to be able to get a stack trace of my hanging PyQt application, does<br>> anyone have any tips on how this can be done in a cross-platform way? I can
<br>> catch SIGINT (and then write the trace before quitting) but the program<br>> isn't necessarily run in a terminal, so I need some way of killing it from<br>> the GUI (e.g., End Task on Windows). I have no idea how to catch the event
<br>> resulting from say End Task on Windows however. Any practical insight would<br>> be very welcome.<br>><br>DrMingw might be able to help. I don't know if it can catch a kill event, but<br>it'll log a stack trace to a file if your program crashes. You can probably
<br>hack it to also log when your program is killed.<br><br></blockquote>I'm not sure this is what I need. I need some way to react to a forced termination of the program, so that I can log the current stack trace(s). I can catch the interrupt signal (from Ctrl+C), but this doesn't help if the program isn't run in a terminal.
<br><br>Arve<br>