in reply to Re^2: Sharing Win32::GUI::RichEdit...
in thread Sharing Win32::GUI::RichEdit...

If you download The GUI Loft, there is a demo program that uses threads and message queues between them for keeping the GUI active during lengthy operations (the FetchURL-threads demo). That way the GUI part can be kept in one single thread and all is good.

Update: The trick is also to not create windows on the fly unless you really need to. Just create them on program startup, and Hide() and Show() them as appropriate.

/J

Replies are listed 'Best First'.
Re^4: Sharing Win32::GUI::RichEdit...
by Ace128 (Hermit) on Jul 07, 2005 at 23:58 UTC
    "Update: The trick is also to not create windows on the fly unless you really need to. Just create them on program startup, and Hide() and Show() them as appropriate."

    That's exactly what I did now. So I rewrote some code for this.