all groups > dotnet clr > april 2007 >
You're in the

dotnet clr

group:

CLR Hosting COR_E_TARGETINVOCATION



CLR Hosting COR_E_TARGETINVOCATION ChristiG
4/19/2007 12:00:00 AM
dotnet clr: Hi

Im hosting CLR in an vc6 project via:
- CorBindToRuntimeEx
- Start
- GetDefaultDomain
- Load_3 (load assambly from mem)
- get_EntryPoint
- Invoke_3(vTarget, pSAParams, &vRetVal); (execute main)

In this way I am able to load most of the pure manged files.
I even figured what to put inside LPSAFEARAY pSAParams to support Main( with
params) because if pSAParams is NULL it will fail on these type of entry
points;

The problem is that I have an image wich won't run; The HRESULT from
Invoke_3 is COR_E_TARGETINVOCATION; I suspect that VARIANT vTarget is the
problem; I don't know what/how to pass there; it must be the object which
created the instance, but I can't figure out what's that :P
The exception looks like this: System.NullReferenceException: Object
reference not set to an instance of an object
at BusyBarDemo.Form1..ctor()
at BusyBarDemo.Form1Main()

Please help, I'm not familiar with .net platform.

Re: CLR Hosting COR_E_TARGETINVOCATION ChristiG
4/22/2007 12:00:00 AM
Ok, no answer.
Then where I should ask to receive an answer about this undocumented COM
stuff?


[quoted text, click to view]

AddThis Social Bookmark Button