dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] Re: [Bug #2948] Loading assemblies from memory


From: Rhys Weatherley
Subject: [Pnet-developers] Re: [Bug #2948] Loading assemblies from memory
Date: Sat, 29 Mar 2003 11:36:48 +1000
User-agent: KMail/1.4.3

On Friday 28 March 2003 09:05 pm, Chris Smith wrote:

> Can I ask if this will allow me to load an assembly into a running
> ILProcess?
>
> The webservices that are held in memory are obviously not compete in that
> they do not contain real entry points, they are in effect just libraries.
> The DGEE pnetVM runs a bootstrap program (DGEEInvoke) that parses the
> incoming request and then loads the relevent webservice dll via:
>
> assembly = Assembly.Load( somewebservice );

I've now added the missing functionality from the "AppDomain" class, including 
the "Load(byte[])" method, which loads an image from an explicitly-specified 
byte array.  In C#, you need to do something like this:

assembly = AppDomain.CurrentDomain.Load(array);

Note: the loading system will make a copy of the array contents during the 
loading process.  This is a security issue - we don't want programmers to be 
able to modify a running IL binary after it has been loaded.

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]