Hello,
I have unmanaged C++ dll, that I use in a managed code (C++). I call this managed code from C#. It seems to work fine, but I am not sure about the memory management, should I free the data? Here is sample of my code:
#pragma unmanaged
void unmanaged_free (void *p_)
{
free (p_);
}
void *unmanaged_mall oc (int size_)
{
return malloc (size_);
...