This saved my bacon. I have a multi-threaded script that extracts WMI performance data using Win32::OLE and I was getting crazy results. Failures that didn't make sense until I found this and realised it wasn't thread safe. In my script I "require" and then uninitialize() Win32::OLE around one subroutine within the worker thread and all is good.
Thanks Monks. I'm replying so that Google may find this quicker and help someone else from the frustration I was having.
|