From: Jan D. <ja...@ac...> - 2008-06-18 17:58:27
|
On Wed, 18 Jun 2008, Charles Alderman wrote: > I've had some luck doing this using fork() and a pipe to communicate > between the (pseudo) processes. On Win32, fork is emulated using perl > threads. So it's basically the same thing. I haven't tested this on > Perl 5.10 yet, but I've had a gui application built this way running > and in use for more than 18 months now. > > Create and layout the window before spawning a new process/thread, as > both pseudo processes can use the same gui handles. You are not really supposed to use GUI handles from a thread that doesn't own them (the one that has created them). While "read" access is generally safe, modifying GUI objects from non-owning threads isn't. For example: http://blogs.msdn.com/oldnewthing/archive/2005/10/10/479124.aspx Cheers, -Jan |