wx in threads other then the main thread

Folks

I've read many postings that say don't do wx things in threads other than the main thread. My app was developed on a Linux machine and I use wx.Post to send event to the main thread and everything works fine. So you can imagine my surprise when on a Mac I get a report that my app crashed in thread 13 (unlucky) and that a wx.DC was involved.

Can I believe the report? Are my threads doing wx stuff and the Linux app is not telling me?

Nigel

···

---
Nigel W. Moriarty

      ____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

Nigel W. Moriarty wrote:

Folks

I've read many postings that say don't do wx things in threads other
than the main thread. My app was developed on a Linux machine and I
use wx.Post to send event to the main thread and everything works
fine. So you can imagine my surprise when on a Mac I get a report
that my app crashed in thread 13 (unlucky) and that a wx.DC was
involved.

Can I believe the report? Are my threads doing wx stuff and the
Linux app is not telling me?

Did the user include the stack trace from the crash report? If so then it might help to give context to the crash so you can identify what part of your program it is happening in. Is your app doing anything with any kind of DC from your worker threads?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!