Re: httplib, threading, wx app freezing after 4 hours

2006-07-27 Thread Dermot Doran
According to the "wxPython in Action" book using the wx.CallAfter function in a non-gui thread is a safe way for threads to call functions that will then update the gui in the gui thread.   Cheers!!   Dermot.   On 23/07/06, Mark rainess <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> Mark rain

Re: httplib, threading, wx app freezing after 4 hours

2006-07-23 Thread Mark rainess
[EMAIL PROTECTED] wrote: > Mark rainess wrote: > [...] >> It runs perfectly for about 4 hours, then freezes. >> I'm stuck. How do I debug this? > [...] >> Can anyone suggest techniques to help me learn what is going on. > > By inspection: "errcode" is undefined; I expect you stripped the > example

Re: httplib, threading, wx app freezing after 4 hours

2006-07-23 Thread bryanjugglercryptographer
Mark rainess wrote: [...] > It runs perfectly for about 4 hours, then freezes. > I'm stuck. How do I debug this? [...] > Can anyone suggest techniques to help me learn what is going on. By inspection: "errcode" is undefined; I expect you stripped the example a bit too far. If it is set to somethi

Re: httplib, threading, wx app freezing after 4 hours

2006-07-22 Thread Nick Vatamaniuc
Mark, httplib will block waiting for a server connection. I am not sure if that is your problem but you could try a quick and dirty workaround of recording a timestamp of the last data transfer and then have a timer in a separate thread and if too much time passed, restart the retrieval thread and

httplib, threading, wx app freezing after 4 hours

2006-07-22 Thread Mark rainess
The program displays images from a motion jpeg webcam. (Motion jpeg is a bastardization of multi-part mime.) It runs perfectly for about 4 hours, then freezes. I'm stuck. How do I debug this? (Using: Python 2.4.3, wxPython 2.6.3.2, Windows 2