Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / April 2007

Tip: Looking for answers? Try searching our database.

CLR Hosting COR_E_TARGETINVOCATION

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ChristiG - 19 Apr 2007 06:18 GMT
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.
ChristiG - 22 Apr 2007 11:04 GMT
Ok, no answer.
Then where I should ask to receive an answer about this undocumented COM
stuff?

> Hi
>
[quoted text clipped - 21 lines]
>
> Please help, I'm not familiar with .net platform.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.