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 the code segmrnt:

[...]

And can't figure out why the mono runtime can't find the default
constructor. I tested with Visual Studio c# project and it works fine.

There isn't a default parameter-less ctor in this class (look at
StandardKernel.cs).

You want to look up and invoke one of the specific ctors and omit
mono_runtime_object_init().

Robert


_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to