[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Assembly.GetType and ignoreCase parameter (Was: RE: [DotGNU]C program, I
From: |
David Podhola |
Subject: |
Assembly.GetType and ignoreCase parameter (Was: RE: [DotGNU]C program, ILExecProcessLoadFile and Assembly.Load) |
Date: |
Mon, 19 Jan 2004 15:10:13 +0100 |
Of course, silly me, this is working now, thanks!
But only till the next line, where I am trying to call Assembly.GetType(
"whatever", true, true );
It seems that the "ignoreCase" parameter is not working, because if I
call just Assembly.GetType( "whatever", true );, it works correctly.
Fine enough for me for now :-)
David Podhola
-----Original Message-----
From: Gopal V [mailto:address@hidden
Sent: Monday, January 19, 2004 9:20 AM
To: David Podhola
Cc: address@hidden
Subject: Re: [DotGNU]C program, ILExecProcessLoadFile and Assembly.Load
Did you mean Assembly.LoadFile ?
Assembly.Load accepts assembly names not paths , IIRC.
HTH,
Gopal
--- address@hidden <address@hidden>
wrote:
> Hi all,
>
> I have build a small C program that is able to host
a pnet runtime.
> Using all the magic around and ILExecProcessLoadFile
with something like
> "/tmp/engine.dll" and then ILExecThreadCallV I can
even call methods in
> my engine.dll and everything works as supposed.
> The problem starts when I want to load another
assembly from my
> engine.dll. If Assembly.Load is called, it always
finished with
> System.BadImageFormatException, although the image
is of course a valid
> pnet dll. The stack is as follows:
>
> System.BadImageFormatException: Format of the
executable or library
> "/tmp/tmp.dll" is invalid
> at
System.Reflection.Assembly.ThrowLoadError(String,
Int32) in
> ./System/Reflection/Assembly.cs:293
> at System.Reflection.Assembly.Load(String,
Assembly) in
> ./System/Reflection/Assembly.cs:344
> at System.Reflection.Assembly.Load(String) in
> ./System/Reflection/Assembly.cs:306
> at Robik.Wrapper.Process(String[]) in
./Wrapper.cs:26
>
> What am I doing wrong? :-)
>
> Thanks,
>
> David Podhola
> _______________________________________________
> Developers mailing list
> address@hidden
> http://dotgnu.org/mailman/listinfo/developers
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Assembly.GetType and ignoreCase parameter (Was: RE: [DotGNU]C program, ILExecProcessLoadFile and Assembly.Load),
David Podhola <=