AW: new Windows freeze

"Alexander Gnauck" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
Hello,

> Maybe you can try a wx.Dialog instead of creating new Frames and lock
> the block of code for creating the new Dialogs to make it thread-safe?

after trying lots of stuff now i read the documentation and found that
wxWindows is not thread safe. And its not allowed to create new windows from
other threads than the main GUI thread. Even wxMutexGuiEnter and
wxMutexGuiLeave doesnt help there. I think the only solution for that
problem is to use:
wxEvtHanlder::AddPendingEvent and wxEvtHandler::ProcessEvent
But i have no idea yet how to use this functions.
Any ideas how i can post my events to the main GUI Thread in C# without
using this functions? I had exactly the same problems with the .NET compact
framework on Pocket PC als solved it there with that solution:
http://www.opennetcf.org/public/controlinvoker.txt

Alex




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.