Re: [Mono-dev] mono_add_internal_call to mscorlib method

2016-06-10 Thread nicob
Now I got it, thanks! -- View this message in context: http://mono.1490590.n4.nabble.com/mono-add-internal-call-to-mscorlib-method-tp4667951p4667961.html Sent from the Mono - Dev mailing list archive at Nabble.com. ___ Mono-devel-list mailing list

Re: [Mono-dev] mono_add_internal_call to mscorlib method

2016-06-10 Thread Robert Jordan
On 09.06.2016 15:37, nicob wrote: Hi Robert, thanks for the reply. I didn't explain my self correctly. Here's an example, I have a c# assembly with a method that prints the args to the console: I believe I didn't explain the workaround entirely. Parts of the Mono runtime are expecting that

Re: [Mono-dev] mono_add_internal_call to mscorlib method

2016-06-09 Thread nicob
Hi Robert, thanks for the reply. I didn't explain my self correctly. Here's an example, I have a c# assembly with a method that prints the args to the console: public void Print() { string[] args = System.Environment.GetCommandLineArgs(); System.Console.WriteLine("Length: " +

Re: [Mono-dev] mono_add_internal_call to mscorlib method

2016-06-09 Thread Robert Jordan
On 08.06.2016 21:26, nicob wrote: Hi, I'm trying to use the Skype Sdk in mono embedded. I'm able to load the assemblies but when I try to create a instance of a class that internally calls System.Environment.GetCommandLineArgs it throws an exception. After digging a bit I found out the

Re: [Mono-dev] mono_add_internal_call to mscorlib method

2016-06-08 Thread Alexander Köplinger
You're looking at the wrong implementation of Environment.cs. The one we're using is still Mono's implementation (as opposed to the MS referencesource one you're looking at): https://github.com/mono/mono/blob/37bb54b503f3f8c948955c577687d4233e950cb5/mcs/class/corlib/System/Environment.cs#L472 It

[Mono-dev] mono_add_internal_call to mscorlib method

2016-06-08 Thread nicob
Hi, I'm trying to use the Skype Sdk in mono embedded. I'm able to load the assemblies but when I try to create a instance of a class that internally calls System.Environment.GetCommandLineArgs it throws an exception. After digging a bit I found out the System.Environment.GetCommandLineArgs