|Re: COM.CoCreateInstance(...) crashes [message #762738 is a reply to message #762185]
||Thu, 08 December 2011 15:06
| Grant Gayed
Registered: July 2009
For info on CoCreateInstance() see |
Return code -2147221164 == 0x80040154 == REGDB_E_CLASSNOTREG. If your
plugin successfully makes this call on this same machine when running
eclipse/swt as a 32-bit app but is failing for you when running
eclipse/swt as a 64-bit app then my guess is that the COM component
you're trying to instantiate is only registered on your machine in a
32-bit .dll/.exe, but a 64-bit compilation of it is needed.
On 12/7/2011 12:03 PM, Kyle Ouellette wrote:
> I'm trying to fix a VSS plugin for eclipse so that it runs on a 64-bit
> machine. I've traced an issue down to a failed call to
> I can't find any documentation on this method.
> Originally, the method was being passed the following arguments:
> int ppv = new int;
> COM.CoCreateInstance(guid, 0, COM.CLSCTX_INPROC_HANDLER |
> COM.IIDIDispatch, ppv);
> Eclipse reported a compilation error: the last argument needed to be
> changed to long, so I changed ppv's type.
> The method call populates ppv with a 0 and result with a strange value
> like '-2147221164'. The call is supposed to return a 0 if successful.
> Does anyone have some insight into this issue? Is there updated
> documentation for this class?
Powered by FUDForum
. Page generated in 0.01391 seconds