AW: new Windows freeze

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

> > i must open new Windows (frames) when i get special events from
> a dll. The
> > dll is also written in C# and uses threads. Sometimes when i
> try to open a
> > window in a Event from the dll then the new Window and the
> whole Application
> > freezes. Is there a workaround for that problem?
>
> 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?

i tried to show a messagebox. That works.
wx.MessageDialog.ShowModal(this, "my message", "Test", Dialog.wxOK |
Dialog.wxICON_INFORMATION);
but when i try to show Windows (wx.Frame) then the windows i show freeze.
What do you mean with "lock  the block of code" ? Its very weird, because it
freezes not in all events. Only in some. I assume that all the code in the
dll is correct because it works with windows forms and it worked with other
GUI libs.

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.