Click here to Skip to main content
15,889,834 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:18
Epi16-Apr-09 2:18 
JokeRe: Mixing Debug and Release during execution Pin
CPallini16-Apr-09 2:20
mveCPallini16-Apr-09 2:20 
JokeRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:35
Epi16-Apr-09 2:35 
AnswerRe: Mixing Debug and Release during execution Pin
Roger Stoltz16-Apr-09 1:20
Roger Stoltz16-Apr-09 1:20 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 1:46
Epi16-Apr-09 1:46 
AnswerRe: Mixing Debug and Release during execution Pin
Roger Stoltz16-Apr-09 2:28
Roger Stoltz16-Apr-09 2:28 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:53
Epi16-Apr-09 2:53 
GeneralRe: Mixing Debug and Release during execution Pin
Cedric Moonen16-Apr-09 2:58
Cedric Moonen16-Apr-09 2:58 
I guess it is due to a mismatch between the runtime library which is used for your exe and for your dll.


Epi wrote:
I haven't anything else except an executable that call a function in a dll passing it a string. No pointers, no arrays...


No really correct: a std string allocates an array internally, and that's what causing the troubles. You are allocating it in your executable and trying to release it in your dll (or the other way around). As you are using two different runtime libraries, there's a crash when the destructor of the string is called because the dll and the exe do not use the same heap.
I'm not really an expert there but I encountered that problem before, I think you are facing the same problem.

Cédric Moonen
Software developer

Charting control [v2.0 - Updated]
OpenGL game tutorial in C++

GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 3:40
Epi16-Apr-09 3:40 
QuestionIssue using SQL server Pin
ShilpiP15-Apr-09 20:36
ShilpiP15-Apr-09 20:36 
AnswerRe: Issue using SQL server Pin
Rajesh R Subramanian28-Jun-09 9:28
professionalRajesh R Subramanian28-Jun-09 9:28 
QuestionModeless dialog box not display in center of parent dialog box. Pin
Le@rner15-Apr-09 20:03
Le@rner15-Apr-09 20:03 
AnswerRe: Modeless dialog box not display in center of parent dialog box. Pin
Joseph Marzbani15-Apr-09 20:19
Joseph Marzbani15-Apr-09 20:19 
GeneralRe: Modeless dialog box not display in center of parent dialog box. Pin
Le@rner15-Apr-09 20:25
Le@rner15-Apr-09 20:25 
AnswerRe: Modeless dialog box not display in center of parent dialog box. Pin
Naveen15-Apr-09 21:30
Naveen15-Apr-09 21:30 
GeneralRe: Modeless dialog box not display in center of parent dialog box. Pin
Le@rner15-Apr-09 21:36
Le@rner15-Apr-09 21:36 
GeneralRe: Modeless dialog box not display in center of parent dialog box. Pin
Iain Clarke, Warrior Programmer15-Apr-09 23:01
Iain Clarke, Warrior Programmer15-Apr-09 23:01 
GeneralRe: Modeless dialog box not display in center of parent dialog box. Pin
Naveen16-Apr-09 17:26
Naveen16-Apr-09 17:26 
QuestionHow to get outlook attachment event? Pin
SNI15-Apr-09 20:01
SNI15-Apr-09 20:01 
AnswerRe: How to get outlook attachment event? Pin
Stuart Dootson15-Apr-09 23:02
professionalStuart Dootson15-Apr-09 23:02 
GeneralRe: How to get outlook attachment event? Pin
SNI17-Apr-09 0:37
SNI17-Apr-09 0:37 
GeneralRe: How to get outlook attachment event? Pin
Stuart Dootson17-Apr-09 0:49
professionalStuart Dootson17-Apr-09 0:49 
GeneralRe: How to get outlook attachment event? Pin
Stuart Dootson17-Apr-09 1:06
professionalStuart Dootson17-Apr-09 1:06 
QuestionPuzzle about c++ inherent Pin
sharion15-Apr-09 19:08
sharion15-Apr-09 19:08 
AnswerRe: Puzzle about c++ inherent [modified] Pin
_AnsHUMAN_ 15-Apr-09 19:27
_AnsHUMAN_ 15-Apr-09 19:27 

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.