Author | Topic: CreateObject | |
---|---|---|
Raffaele Lafratta | CreateObject on Tue, 28 Jun 2016 14:16:28 +0200 When calling CreateObject(), from version 2.0.685 to 2.0.703 ( Never seen it with 2.0.653 and 1.9 .355) I receive randomly this error: -2147221008 CoInitialize has not been called Anyone can help me ? Thanks in advance Raffaele Lafratta | |
Raffaele Lafratta | Re: CreateObject on Tue, 28 Jun 2016 14:36:04 +0200 Il 28/06/2016 14.16, Raffaele Lafratta ha scritto: > When calling CreateObject(), from version 2.0.685 to 2.0.703 ( Never > seen it with 2.0.653 and 1.9 .355) I receive randomly this error: > > -2147221008 CoInitialize has not been called > > Anyone can help me ? > > Thanks in advance > > Raffaele Lafratta > I add some other info My app is multithreaded and problem seems to appear only on 64 bit O.s (Windows 10 , Window server 2012 ) | |
Frank Grossheinrich | Re: CreateObject on Fri, 01 Jul 2016 11:25:50 +0200 Raffaele, 1) your observation is too strange 2) I looked up our code: nothing has been changed in CreateObject() since build 653; we did not touch a single line of code here! What ActiveX control are you using? Are you running ActiveX controls in different threads? Are you doing some cleanup when destroying/shutting down such threads? What? Regards, Frank On 28.06.2016 14:16, Raffaele Lafratta wrote: > When calling CreateObject(), from version 2.0.685 to 2.0.703 ( Never > seen it with 2.0.653 and 1.9 .355) I receive randomly this error: > > -2147221008 CoInitialize has not been called > > Anyone can help me ? > > Thanks in advance > > Raffaele Lafratta > | |
Raffaele Lafratta | Re: CreateObject on Tue, 12 Jul 2016 16:09:50 +0200 Il 01/07/2016 11.25, Frank Grossheinrich ha scritto: > Raffaele, > > 1) your observation is too strange > 2) I looked up our code: nothing has been changed in CreateObject() > since build 653; we did not touch a single line of code here! > > What ActiveX control are you using? > Are you running ActiveX controls in different threads? > Are you doing some cleanup when destroying/shutting down such threads? > What? > > Regards, Frank > > On 28.06.2016 14:16, Raffaele Lafratta wrote: >> When calling CreateObject(), from version 2.0.685 to 2.0.703 ( Never >> seen it with 2.0.653 and 1.9 .355) I receive randomly this error: >> >> -2147221008 CoInitialize has not been called >> >> Anyone can help me ? >> >> Thanks in advance >> >> Raffaele Lafratta >> > Sorry for late answer I'm using several activexs but problem is not related to a single activex When it happens any other createObject() fails When it happens I tried to explicit call Coinitialize from ole32.dll and retry Createobject() but it fails again Hope this can help Regards Raffaele |