Re: [Mono-list] Could not lookup zero argument constructor for class Ninject.StandardKernel

2015-03-06 Thread Robert Jordan
On 05.03.2015 23:18, mimi wrote: Thanks Robert! It worked out but I got another problem. classDictionary = mono_class_from_name(mono_get_corlib(), System.Collections.Generic, Dictionary' 2); NULL It's Dictionary`2. Notice the backtick. classDictionary =

Re: [Mono-list] Could not lookup zero argument constructor for class Ninject.StandardKernel

2015-03-05 Thread mimi
Thanks Robert! It worked out but I got another problem. classDictionary = mono_class_from_name(mono_get_corlib(), System.Collections.Generic, Dictionary' 2); NULL classDictionary = mono_class_from_name(mono_get_corlib(), System.Collections.Generic, Dictionary'2); NULL classDictionary =

Re: [Mono-list] Could not lookup zero argument constructor for class Ninject.StandardKernel

2015-03-05 Thread Robert Jordan
On 04.03.2015 20:04, mimi wrote: For Mono, if I insert 'mono_runtime_object_init(instanceStandardKernel)', we are trying to execute default argument-less ctor of StandardKernel that doesn't exist and I got the error which is normal. Here, how Mono will parse 'new StandardKernel()'? Default

Re: [Mono-list] Could not lookup zero argument constructor for class Ninject.StandardKernel

2015-03-04 Thread mimi
@RobertJordan: After receiving your msg, I did more analyses. Here is the c# code: namespace ClassLibrary1 { public class Class1 { Class2 mClass2 = new Class2(); public Class1() { Console.WriteLine(Class1 constructor called!\n); } public void GreetPeople(string

Re: [Mono-list] Could not lookup zero argument constructor for class Ninject.StandardKernel

2015-03-04 Thread Robert Jordan
On 03.03.2015 21:57, mimi wrote: I embedded Mono to my c++ code and tested with basic stuffs (invoke c# methods wiht parameters and from multiple DLLs). I am trying to add Ninject stuff to my code (https://github.com/ninject/Ninject/blob/master/src/Ninject/StandardKernel.cs). The following is

[Mono-list] Could not lookup zero argument constructor for class Ninject.StandardKernel

2015-03-03 Thread mimi
I embedded Mono to my c++ code and tested with basic stuffs (invoke c# methods wiht parameters and from multiple DLLs). I am trying to add Ninject stuff to my code (https://github.com/ninject/Ninject/blob/master/src/Ninject/StandardKernel.cs). The following is the code segmrnt: