Steve Hay wrote:
>Jan Dubois wrote:
>
>
>>The other issue you are seeing is that CoInitialize() needs to be called
>>in each *thread* that wants to make COM calls. To do this properly, the
>>module needs to provide a CLONE method if you are using Perl threads in
>>5.8.x.
>>
>>
>>
>That's no
IMHO, your startup.pl approach is best, although I'm not sure why it would
be calling END. In any case, you only need to use() the module once at
startup. Most likely, in the "scripts" which are calling the functions, you
could just import() the module. Or maybe I misunderstood.
Issac
BTW: F
On Tue, 21 Sep 2004, Steve Hay wrote:
> I'm a little wary of this fix because MSDN docs say "An apartment must
> call CoUninitialize once for each successful call it has made to
> CoInitialize" and "CoUninitialize should be called on application
> shutdown", but it certainly seems to work and is le
On Tue, 21 Sep 2004, Jan Dubois wrote:
> There is also a race condition when 2 modules try to call CoUninitialize(),
> e.g. Win32::Shortcut and Win32::OLE. If Win32::Shortcut has been loaded last,
> then its END block will be executed first, and the DESTROY methods of all
> still existing Win32::O
Jan Dubois wrote:
>On Tue, 21 Sep 2004, Steve Hay wrote:
>
>
>>(Non-Win32 users: The real issue here is not Win32-specific.)
>>
>>
>
>As to Win32::Shortcut: you should just delete the END block from the module.
>I see that Sarathy already did this over a year for the version that ships
>wit
On Tue, 2004-09-21 at 12:24, Steve Hay wrote:
> The only way that I've got this working so far is to simulate what
> Apache::StatINC would do if the module was changed between every
> request: I've deleted the loading of the module from server startup,
> and now have this in my script:
>
>
On Tue, 21 Sep 2004, Steve Hay wrote:
> (Non-Win32 users: The real issue here is not Win32-specific.)
As to Win32::Shortcut: you should just delete the END block from the module.
I see that Sarathy already did this over a year for the version that ships
with ActivePerl. He also gave me his mailb