[GD-Windows] new/delete across DLL's
Brought to you by:
vexxed72
From: Ben H. <cr...@ca...> - 2003-03-24 17:08:58
|
Am I doing something wrong, or is this correct behaviour: in core.dll I have a class CFooBar. in the game exe, I call wibble =3D new CFooBar; Later on, within the exe, I call delete wibble; and get an Assert= warning because I'm deallocating from the wrong heap. This seems very strange, that I can only deallocate a class= defined in a DLL from within that DLL, even if the instance was= allocated somewhere else. Am I understanding this correctly, or= am I doing something else to cause the problem? Is there any way= round this? [ cruise / casual-tempest.net / transference.org ] |