Microsoft C++ exception: Il2CppExceptionWrapper at memory location

(note: using Unity 5.4.0p3)

I am attempting to create some plugins for UWP for use with IL2CPP, and am running into a strange issue.

The plugin simply has a few data model classes to help with using some JSON stuff, while another class or two have helper methods.

The exception thrown seems to be related to a data model class, and in Visual Studio, I can catch this and drill down to find this message:

Do I need to put in empty constructors on these classes? Seems odd, it is marked for Editor/Standalone and is configured to use “.NET Framework 3.5” for the built DLL.

do I need to choose a different target?

It’s possible the empty constructor gets stripped out since you’re not referencing it from any our your scripts. Might that be the case?

1 Like

well… I feel silly.

I had put into the link.xml the ‘assembly’ fullname, but had not put the sub-namespaces into it >.<

(e.g.: “PM.Models” )

adding them, worked… thanks @Tautvydas-Zilys