Ok I committed the static linking set up to the visualStudio_2015_static_mt
Is saw what you did. Nice. I think I mislead you. Or maybe not, I do no know what is the best way to go about.
Basically the Memory allocation is problem the only call back you do no what to interface with C# all others we be call to C# delegate. The NewtonAllocMemory and NewtonFreeMemory callback
we would probably want to declare for function on the NetwonmWraper.
two for for allocation and free memory, and operator new and delete.
Ideally in all other languages this will be plug to the application, but I believe in c# it would be better that let C++ to handle the memory allocation.
basically we the goal is to let C# handle c sharp memory and C++ handle c++ memory. I do no thonmg si a good idea to have C Sharp garbage collector handling C ++ memory.
tomorrow morning I will add those function and the you can hook then to the wrapper again.
sorry, I did not think of that when I ask you to plug in the delegate stuff.
But this is applicable for all other DLL that will use.
Now in theory we should be able launch unity, and add the plugin in and it should create and destroy NewtonWorld?
Tomorrow morning I will also add another Environment variable, so that visual studio use it to copy the dll to the unity folder.