Depending on your needs, you can also write a server which will create 
Win32::OLE objects on behalf of your program.  This should nicely sidestep the 
threading issue.

If you head down this path, you might check out POE.  The learning curve can be 
a bit steep at times, but it is well worth the effort IMO.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Veli-Pekka Tätilä
Sent: Saturday, August 13, 2005 1:12 AM
To: Jan Dubois; [email protected]
Subject: Re: Bug in OLE and Threading in V5.86?


Jan Dubois wrote:
> On Fri, 12 Aug 2005, Veli-Pekka Tätilä wrote:
<snip>
>> The issue occurs hwen trying to use OLE together with threading.
> Yes, that is a known issue.  Don't use Win32::OLE with threading,
> it doesn't work.

Ok, good to know and thanks for a quick reply. Is this fact already 
mentioned in the docs? I must confess I haven't looked at the OLE docs too 
closely, I've learned most of what I've needed to know from OLE in the Gecko 
book and Visual Studio 6 OLE Viewer. The Gecko book says that Active State 
distroes should use OLE rather than Win32::OLE. Is this up to date info and 
will the OLE module work differently in terms of threading?

I reckon the problem lies with PErl in the end. Oddly enough I can use 
multi-threaded OLE servers somewhat. For instance speaking text through SAPI 
5 asynchronously provided that I sleep some ms in Perl so that the SAPI 
thread has CPU time to speak up. If I try to do something heavy while the 
SAPI 5 thread is speaking, it seems to be starving mostly. I haven't 
experienced the same problem in C++ and Win32.

With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED])
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/ 

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to