Click here to Skip to main content
15,909,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CRecordset and CTime Problem Pin
David Crow19-May-06 3:03
David Crow19-May-06 3:03 
GeneralRe: CRecordset and CTime Problem Pin
e-DJ23-May-06 5:51
e-DJ23-May-06 5:51 
QuestionError not releasing memeory Pin
bujji_bec18-May-06 4:50
bujji_bec18-May-06 4:50 
AnswerRe: Error not releasing memeory Pin
NiceNaidu18-May-06 4:58
NiceNaidu18-May-06 4:58 
AnswerRe: Error not releasing memeory Pin
led mike18-May-06 4:59
led mike18-May-06 4:59 
GeneralRe: Error not releasing memeory Pin
Cedric Moonen18-May-06 5:07
Cedric Moonen18-May-06 5:07 
GeneralRe: Error not releasing memeory Pin
led mike18-May-06 5:46
led mike18-May-06 5:46 
GeneralRe: Error not releasing memeory Pin
Cedric Moonen18-May-06 20:25
Cedric Moonen18-May-06 20:25 
led mike wrote:
I have no idea what you mean with that statement. You can't "mix" memory addresses across processes because you don't have access to them. Therefore you can't get that "trouble".


Sorry, maybe it was not clear: your dll has its own heap manager (which manages the heap memory) and the exe has its own heap manager too. If, inside a function of your dll, you allocate memory, it will be allocated by the heap manager of your dll. If you return this pointer to your exe (simply a return from the function) and you try to delete inside your exe, the memory will be released by the heap manager of your exe, which doens't recognize it (of course, because it didn't allocate it). Thus, you got the problem.

Seing his code, if he didn't do any stupid things inside his dll (so if he simply allocate the memory as normal) that's the only thing that can cause the crash.


Cédric Moonen
Software developer

Charting control
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 
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 

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.