Click here to Skip to main content
15,908,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Error not releasing memeory Pin
Cedric Moonen18-May-06 5:01
Cedric Moonen18-May-06 5:01 
I don't understand what you describe. Could you be more explicit ? What are these clsobt, clobj, cls and cls1 ?? Confused | :confused:


bujji_bec wrote:
delete []p; // this statement giving problem


What problem ? You get a crash ? A compile error ? A blue cow is getting out of the screen (this one is highly improbable I think Poke tongue | ;-P ).

Anyway, what I think you are doing is using a new inside your dll (you call a function from your dll in which you allocate memory with new), you store this pointer into the variable p and then you try to free the memory. And there BANG, you get an assertion.
It is because the heap manager of your exe and of your dll are different, thus you CANNOT delete memory that has been allocated by your dll and vice-versa. To avoid this problem, use a std::string (but beware you have to link to the same run-time libraries in both of your project settings or you'll get the same problem)


Cédric Moonen
Software developer

Charting control
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 
GeneralRe: lib file Pin
big_denny_20018-May-06 6:28
big_denny_20018-May-06 6:28 

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.