Click here to Skip to main content
15,919,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: different dll - must use SysAllocString and SysFreeString? Pin
jhwurmbach23-Aug-07 21:37
jhwurmbach23-Aug-07 21:37 
AnswerRe: heap corruption Pin
Iain Clarke, Warrior Programmer23-Aug-07 1:33
Iain Clarke, Warrior Programmer23-Aug-07 1:33 
GeneralRe: heap corruption Pin
Russell'23-Aug-07 1:49
Russell'23-Aug-07 1:49 
GeneralRe: heap corruption Pin
devvvy23-Aug-07 13:51
devvvy23-Aug-07 13:51 
GeneralRe: heap corruption Pin
Iain Clarke, Warrior Programmer23-Aug-07 21:54
Iain Clarke, Warrior Programmer23-Aug-07 21:54 
GeneralRe: heap corruption Pin
devvvy29-Aug-07 2:58
devvvy29-Aug-07 2:58 
AnswerRe: heap corruption Pin
ghle27-Aug-07 4:24
ghle27-Aug-07 4:24 
GeneralRe: heap corruption Pin
devvvy29-Aug-07 2:57
devvvy29-Aug-07 2:57 
Thanks - I did take care not to allocate and disallocate memory from different dll... howeever, may be I missed certain places the trouble remains.

Advised by another developer, I changed some of the methods to take "const string &" as supposed to just "string" - after which the problem persists when debugged under Visual Studio 6. And the problem disappeared when debugged under Visual Studio 2005...

passing by value invokes "temporaries", and destructor won't work properly for these temporaries when passed across dll boundaries? But still why it crashed with VS6 and not VS2005??

baffling!!

I can send you the code if you are willing to look at it. Thanks!

devy

QuestionSmall question Pin
Chen-XuNuo22-Aug-07 23:01
Chen-XuNuo22-Aug-07 23:01 
AnswerRe: Small question Pin
fefe.wyx22-Aug-07 23:12
fefe.wyx22-Aug-07 23:12 
AnswerRe: Small question Pin
toxcct22-Aug-07 23:17
toxcct22-Aug-07 23:17 
AnswerRe: Small question Pin
Roger Broomfield22-Aug-07 23:20
Roger Broomfield22-Aug-07 23:20 
JokeRe: Small question Pin
Cedric Moonen22-Aug-07 23:22
Cedric Moonen22-Aug-07 23:22 
GeneralRe: Small question Pin
toxcct22-Aug-07 23:25
toxcct22-Aug-07 23:25 
GeneralRe: Small question Pin
Roger Broomfield22-Aug-07 23:32
Roger Broomfield22-Aug-07 23:32 
GeneralRe: Small question Pin
Naveen22-Aug-07 23:33
Naveen22-Aug-07 23:33 
GeneralRe: Small question Pin
Naveen22-Aug-07 23:30
Naveen22-Aug-07 23:30 
Questionregistry cleaner for window xp Pin
niki dutta22-Aug-07 22:57
niki dutta22-Aug-07 22:57 
AnswerRe: registry cleaner for window xp Pin
toxcct22-Aug-07 22:58
toxcct22-Aug-07 22:58 
AnswerRe: registry cleaner for window xp Pin
Russell'22-Aug-07 23:05
Russell'22-Aug-07 23:05 
AnswerRe: registry cleaner for window xp Pin
Rajesh R Subramanian23-Aug-07 0:21
professionalRajesh R Subramanian23-Aug-07 0:21 
GeneralRe: registry cleaner for window xp Pin
toxcct23-Aug-07 0:26
toxcct23-Aug-07 0:26 
GeneralRe: registry cleaner for window xp Pin
Iain Clarke, Warrior Programmer23-Aug-07 1:35
Iain Clarke, Warrior Programmer23-Aug-07 1:35 
QuestionHow to get software information Pin
kim00722-Aug-07 22:41
kim00722-Aug-07 22:41 
AnswerRe: How to get software information Pin
David Crow23-Aug-07 2:52
David Crow23-Aug-07 2:52 

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.