Allocating in a Dll and deallocating in a second Dll or exe will fail
if the Dll uses a static C runtime library. You must use a Dll C
runtime to ensure that the same code is doing the allocation and
deallocation if you want to do this type of stuff.
Thanks
That is correct, but what do one need to do that. Any more inputs.Thanks and Regards
Deepak-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Rajesh Nikam
Sent: Friday, December 03, 2004 5:04 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] free the memory allocated in dll, causes Invalid
Heap PointerHi,
If you are allocating memory in Dll, then provide function in dll to free the memory.
If you are allocating in dll, then do not free memory in application.-rk
Robert Newton