[Mono-osx] ServicePointManager using 2.0

silver83 silver83 at gmail.com
Wed Nov 19 09:01:04 EST 2008


It was my problem with incorrect args to mono_jit_exec  
Sorry and Thanks.


duanew wrote:
> 
> I no longer get this issue but as I indicated and you tried the EXE is
> required.  All of my searching pointed to the DLL not initializing the
> environment correctly.  And I tried to set some of the variables manually
> that the code appeared to need, that never worked.  Maybe the call to
> mono_domain_assembly_open is required.
> 
> Here again is how I currently init the 2.0.1 mono environment from within
> my
> Cocoa app:
> 
>     NSString *libraryPath = [[[NSBundle mainBundle] bundlePath]
> stringByAppendingPathComponent:@"Contents/Libraries"];
>     NSString *sampleAssemblyPath = [libraryPath
> stringByAppendingPathComponent:@"MacMonoClient.exe"];
>     NSLog(@"libraryPath: %@", sampleAssemblyPath);
> 
>     mono_config_parse ("config");
>     domain = mono_jit_init ([sampleAssemblyPath UTF8String]);
>     MonoAssembly *monoAssembly = mono_domain_assembly_open(domain,
> [sampleAssemblyPath UTF8String]);
> 
>     NSLog(@"sample assembly: %p", monoAssembly);
>     mono_jit_exec (domain, monoAssembly, 1, argv);
> 
> 

-- 
View this message in context: http://www.nabble.com/ServicePointManager-using-2.0-tp20081227p20580368.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list