amr elalamy wrote: > I want to allocate memory in DLL and free this allocation in another > application. Is it valid or not???? i.e. >
Given you are talking about DLLs, I assume you mean Windows. In this case, memory is owned by whatever library created it. Even though an EXE may load a DLL and run its code in the same thread and behave as the same application, and they can share heap space, they cannot manage each other's memory. I think .NET gets around this limitation but with plain old C/C++ this is how it is. -- John Gaughan
