[Mono-dev] Embedding Mono
vinay.kashyap at ironmountain.com
Tue Mar 15 06:45:19 EDT 2011
I got the thing to work... but I' am not very thrilled with the
resolution... It seems like it'll work only if I use the same string for
both MonoDomain creation thru mono_jit_init and also for loading assembly
thru mono_domain_assembly_open.. In essense I am having to pass the assembly
file path string even for the Domain, I used to think that it just requires
a string name for the domain.
But with this issue gone.. when I continued my work I hit upon another
issue: My managed app uses the Mono.Unix.UnixDirectoryInfo class and at the
instantiation of this class I get an exception that says :
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for Mono.Unix.Native.Syscall --->
at (wrapper managed-to-native) Mono.Unix.Native.Syscall:_L_ctermid ()
at Mono.Unix.Native.Syscall..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at Mono.Unix.UnixFileSystemInfo.GetFileStatus (System.String path,
Mono.Unix.Native.Stat& stat) [0x00000] in :0
at Mono.Unix.UnixFileSystemInfo.Refresh (Boolean force) [0x00000] in :0
at Mono.Unix.UnixFileSystemInfo..ctor (System.String path) [0x00000] in :0
at Mono.Unix.UnixDirectoryInfo..ctor (System.String path) [0x00000] in :0
at SimpleScanner.Program.Main (System.String args) [0x00000] in :0
I am trying this on Mac OSX and I dont get this problem if I run my exe
directly from Terminal using: Mono . So how is the environment different in
case of Mono Embedding for this to happen.
Any help is highly appreciated...
Thanks in advance.
View this message in context: http://mono.1490590.n4.nabble.com/Embedding-Mono-tp3345310p3356206.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list