Why not pass the application pointer to your dll? Then, you don't need to directly access the allocated memory, but use the application pointer to have member functions in the main application do the work for you:
GetMyStuff(), SetMyStuff(), ClearMyStuff() or FreeMyStuff()... or whatever other member functions you want.
To save the function call back to the exe for freeing and allocating . I would like to free it in the DLL
BUT it crashes!!!!.
Does any body have any idea?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.