If I use C # for P / Invoke for a specific DLL, will the actual C ++ DLL be executed for the duration of the call and then be turned off, destroying all the memory used? Or will .NET take charge of the memory used by the C ++ DLL in the unmanaged heap and give pointers to these objects in the C ++ DLL every time I call a static function?
When I need a specific C ++ project to maintain persistent memory, do I have to create an ActiveX / COM server so that its memory is saved, and still be able to call it with C #?
Robin rodricks
source share