Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Win32::OLE and fork causes null pointer exceptionby erroneousBollock (Curate) |
on Nov 15, 2007 at 15:12 UTC ( [id://650987]=note: print w/replies, xml ) | Need Help?? |
fork() on Win32 is emulated using threads. threads.pm clones all non-shared variables into new threads. When they go out of scope, their destructors are called as usual. That can cause bad things to happen for resources like filehandles and Win32 resource handles.
Does anyone know of a workaround for this problem?Don't use fork() on Win32 under any circumstances. Use threads directly. -David
In Section
Seekers of Perl Wisdom
|
|