[Mono-list] How does mono runtime load the assembly ?

Ian Norton ian.norton-badrul at thales-esecurity.com
Fri Aug 12 03:00:19 EDT 2011


On Fri, Aug 12, 2011 at 07:45:52AM +0100, Stifu wrote:
> Hmm, I'm a bit confused. How do you load your app with Mono?
> And how/why does it seem even the exe is not loaded?

Assemblies can be in the GAC, in the same directory as the exe or (and this is
specific to mono only) in a folder pointed to by the MONO_PATH environment
variable.

As Sitfu says, It's not clear how you've drawn your conclusions.  If foo.exe
actually runs and works and actually calls code inside a dll it must have
loaded it :).

what platform are you running mono on?
 
> 
> Happy Swinger wrote:
> >
> > Hi I am fairly familiar with .NET but completely new to MONO.
> > I have the following newbie basic question. Forgive me please in advance.
> >
> > If I have an app called foo.exe which refs some types defined in let's say
> > system.data.dll, then when foo.exe is running, you can see the
> > system.data.dll is actually dynamically loaded within foo.exe process
> > address space. The jit compiler needs to load the type's code and metadata
> > - thus the needed assembly is loaded.
> >
> > When running foo.exe under mono runtime though, I don't  see
> > system.data.dll being loaded, even foo.exe is not loaded, so it seems. How
> > does the mono runtime load the IL and metadata of the CLI assemblies ? Why
> > is the dll loading scheme not used ? Does this have something to do with
> > supporting other OS platforms that do not support dll ?
> >
> > Thanks
> >
> 
> 
> --
> View this message in context: http://mono.1490590.n4.nabble.com/How-does-mono-runtime-load-the-assembly-tp3737571p3738027.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list