Search found 6 matches

by darryl242
Thu Dec 08, 2005 10:43 pm
Forum: C++ Development
Topic: wxThread and wxMemoryDC::SelectObject()
Replies: 7
Views: 1727

I did not know that... however, I should. It makes total sense.

I corrected the problem thanks to you're insight...
Thanks Ryan!
by darryl242
Wed Dec 07, 2005 11:49 pm
Forum: C++ Development
Topic: wxThread and wxMemoryDC::SelectObject()
Replies: 7
Views: 1727

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...
by darryl242
Thu Aug 18, 2005 12:41 am
Forum: Platform Related Issues
Topic: Weird wxThread problem with Delete() and Wait() under WXMSW
Replies: 5
Views: 2326

Yes, you are correct... My tests confirmed that Wait() or Delete() work the same (with the exception you pointed out). Linux pthreads doesn't cause the same error, that's why I thought I had a clue :p

Thanks again!
by darryl242
Wed Aug 17, 2005 6:58 pm
Forum: Platform Related Issues
Topic: Weird wxThread problem with Delete() and Wait() under WXMSW
Replies: 5
Views: 2326

Strange... I just discovered that if I call Delete() but not Wait()... the "handle invalid" error messages go away. I guess I'll leave my code like that as it seems to work. Does anyone know if this is a bug or something specific to Windows? Should I update the wxThread entry on wxWiki? There is no ...
by darryl242
Wed Aug 17, 2005 2:18 pm
Forum: Platform Related Issues
Topic: Weird wxThread problem with Delete() and Wait() under WXMSW
Replies: 5
Views: 2326

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...
by darryl242
Tue Aug 16, 2005 10:39 pm
Forum: Platform Related Issues
Topic: Weird wxThread problem with Delete() and Wait() under WXMSW
Replies: 5
Views: 2326

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 setup). OS...