Re: [GD-Windows] new/delete across DLL's
Brought to you by:
vexxed72
From: Ben H. <cr...@ca...> - 2003-03-24 19:48:12
|
>...The one thing I remembered was that >allocations performed by DLL code are allocated from a distinct >heap. It has to be this way for the memory dynamically= allocated by >a DLL to survive the death of your process. Now, if I was trying to deallocate memory I'd allocated in the= DLL, then I could understand it (I've already encountered that one). But I'm deallocating memory (I thought) I'd allocated in the exe...just happens to be a class declared in the DLL...or does= that end up amounting to the same thing? And, wrt Jon Watte's comments...I'm already heavily doing an Interface/Factory structure...this is one of my Factories I'm= trying to create within Game::Game(), and then deallocate in ~Game() Or do I now need a FactoryFactory ? [ cruise / casual-tempest.net / transference.org ] |