Click here to Skip to main content
15,898,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error not releasing memeory Pin
Cedric Moonen18-May-06 5:01
Cedric Moonen18-May-06 5:01 
GeneralRe: Error not releasing memeory Pin
Chris Losinger18-May-06 5:10
professionalChris Losinger18-May-06 5:10 
JokeRe: Error not releasing memeory Pin
Roger Stoltz18-May-06 6:17
Roger Stoltz18-May-06 6:17 
GeneralRe: Error not releasing memeory Pin
ThatsAlok18-May-06 19:03
ThatsAlok18-May-06 19:03 
GeneralRe: Error not releasing memeory Pin
led mike18-May-06 5:49
led mike18-May-06 5:49 
GeneralRe: Error not releasing memeory Pin
ThatsAlok18-May-06 19:07
ThatsAlok18-May-06 19:07 
GeneralRe: Error not releasing memeory Pin
Cedric Moonen18-May-06 20:20
Cedric Moonen18-May-06 20:20 
GeneralRe: Error not releasing memeory Pin
led mike19-May-06 5:21
led mike19-May-06 5:21 
Cedric Moonen wrote:
There are two heap managers: one for the exe and one for the dll.


There can be if the author of a DLL creates a private heap (I have never seen this). However that does not happen by default. There is one and only one default heap across an entire process.

reference[^]

The Process heap is used for allocating blocks if no other heap is used. Language 
run times also can create separate heaps within a process. (For example, C run time 
creates a heap of its own.) Besides these dedicated heaps, the application program or 
one of the many loaded dynamic-link libraries (DLLs) may create and use separate heaps.


COM does not change any of that. If you load a COM dll in process then it shares the same heap. If it is out of process then any memory resources you obtain in the local process from the COM interfaces is marshaled into the local process. This means memory is allocated in the local process and the data has been copied into it from the COM remote process. The local process has NOT been given an address in memory from the remote process.


"What classes are you using ? You shouldn't call stuff if you have no idea what it does"
Christian Graus in the C# forum


led mike
GeneralRe: Error not releasing memeory Pin
Cedric Moonen19-May-06 6:19
Cedric Moonen19-May-06 6:19 
GeneralRe: Error not releasing memeory Pin
led mike19-May-06 7:26
led mike19-May-06 7:26 
GeneralRe: Error not releasing memeory Pin
Cedric Moonen21-May-06 22:24
Cedric Moonen21-May-06 22:24 
QuestionMultiple Line ToolTip Pin
Andy Rama18-May-06 4:14
Andy Rama18-May-06 4:14 
AnswerRe: Multiple Line ToolTip Pin
NiceNaidu18-May-06 5:12
NiceNaidu18-May-06 5:12 
GeneralRe: Multiple Line ToolTip Pin
Andy Rama18-May-06 5:45
Andy Rama18-May-06 5:45 
GeneralRe: Multiple Line ToolTip Pin
Andy Rama18-May-06 19:56
Andy Rama18-May-06 19:56 
Questionlib file Pin
big_denny_20018-May-06 4:02
big_denny_20018-May-06 4:02 
AnswerRe: lib file Pin
Cedric Moonen18-May-06 4:10
Cedric Moonen18-May-06 4:10 
GeneralRe: lib file Pin
big_denny_20018-May-06 6:28
big_denny_20018-May-06 6:28 
AnswerRe: lib file Pin
NiceNaidu18-May-06 4:32
NiceNaidu18-May-06 4:32 
GeneralRe: lib file Pin
Cedric Moonen18-May-06 4:41
Cedric Moonen18-May-06 4:41 
AnswerRe: lib file Pin
Eytukan18-May-06 4:34
Eytukan18-May-06 4:34 
GeneralRe: lib file Pin
Rage18-May-06 4:42
professionalRage18-May-06 4:42 
GeneralRe: lib file Pin
Cedric Moonen18-May-06 4:45
Cedric Moonen18-May-06 4:45 
GeneralRe: lib file Pin
NiceNaidu18-May-06 4:50
NiceNaidu18-May-06 4:50 
GeneralRe: lib file Pin
Eytukan18-May-06 4:54
Eytukan18-May-06 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.