in reply to Win32::OLE and fork causes null pointer exception
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32::OLE and fork causes null pointer exception
by jrsimmon (Hermit) on Nov 15, 2007 at 16:10 UTC | |
by erroneousBollock (Curate) on Nov 15, 2007 at 16:15 UTC | |
by jrsimmon (Hermit) on Nov 15, 2007 at 16:34 UTC | |
by jrsimmon (Hermit) on Nov 15, 2007 at 16:45 UTC | |
by jrsimmon (Hermit) on Nov 27, 2007 at 23:18 UTC |