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

"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.