I did not know that... however, I should. It makes total sense.
I corrected the problem thanks to you're insight...
Thanks Ryan!
Search found 6 matches
- Thu Dec 08, 2005 10:43 pm
- Forum: C++ Development
- Topic: wxThread and wxMemoryDC::SelectObject()
- Replies: 7
- Views: 2358
- Wed Dec 07, 2005 11:49 pm
- Forum: C++ Development
- Topic: wxThread and wxMemoryDC::SelectObject()
- Replies: 7
- Views: 2358
wxThread and wxMemoryDC::SelectObject()
Is it possible to use wxMemoryDC::SelectObject() from within a wxThread? I have this code: void *iCamThread::Entry() { int width = 320, height = 240; while(!TestDestroy()) { wxMemoryInputStream *stream = new wxMemoryInputStream((char *)icam_logo, (size_t)icam_logo_len); wxImage image(*stream, wxBITM...
- Thu Aug 18, 2005 12:41 am
- Forum: Platform Related Issues
- Topic: Weird wxThread problem with Delete() and Wait() under WXMSW
- Replies: 5
- Views: 3203
- Wed Aug 17, 2005 6:58 pm
- Forum: Platform Related Issues
- Topic: Weird wxThread problem with Delete() and Wait() under WXMSW
- Replies: 5
- Views: 3203
- Wed Aug 17, 2005 2:18 pm
- Forum: Platform Related Issues
- Topic: Weird wxThread problem with Delete() and Wait() under WXMSW
- Replies: 5
- Views: 3203
Re: Weird wxThread problem with Delete() and Wait() under WX
You should just be able to call Wait() - the thread is always dead on MSW after delete IIRC. Oh, ok... Is that not what I'm doing though? What would you differently here? I'm calling Delete() then Wait()... Both of these result in errors. The interesting part is that Delete() actually does somethin...
- Tue Aug 16, 2005 10:39 pm
- Forum: Platform Related Issues
- Topic: Weird wxThread problem with Delete() and Wait() under WXMSW
- Replies: 5
- Views: 3203
Weird wxThread problem with Delete() and Wait() under WXMSW
wx-masters, I've used wxThread with Windows before (wx2.4) without a problem. I'm working on a new project using wx2.6.1 and I'm having a problem where Delete() and Wait() are returning "invalid handle". I have put together a very small example that illustrates the problem (at least on my ...