Click here to Skip to main content
15,881,559 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 0:50
Epi16-Apr-09 0:50 
GeneralRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 1:25
professionalRajesh R Subramanian16-Apr-09 1:25 
GeneralWelcome again in the CP's members memorable quotes! Pin
CPallini16-Apr-09 1:48
mveCPallini16-Apr-09 1:48 
GeneralRe: Welcome again in the CP's members memorable quotes! Pin
Rajesh R Subramanian16-Apr-09 1:55
professionalRajesh R Subramanian16-Apr-09 1:55 
GeneralRe: Welcome again in the CP's members memorable quotes! Pin
CPallini16-Apr-09 2:11
mveCPallini16-Apr-09 2:11 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:01
Epi16-Apr-09 2:01 
GeneralRe: Mixing Debug and Release during execution Pin
Rajesh R Subramanian16-Apr-09 2:10
professionalRajesh R Subramanian16-Apr-09 2:10 
GeneralRe: Mixing Debug and Release during execution Pin
Epi16-Apr-09 2:18
Epi16-Apr-09 2:18 
Yes, acctually that's my problem.

I have done a simple test:

Create a dll with a function. (for example:
__declspec(dllexport) int test1(const std::string& chain)<br />
{<br />
	std::string test;<br />
	<br />
	test = "testing: ";<br />
	test += chain;<br />
	return 13;<br />
}
)

Create a exe that import the funtion. (for example:
 #pragma comment(lib, "DllTest.lib")<br />
__declspec(dllimport) int test1(const std::string& cadena);
)

Call to the function of the dll form the exe. (for example:
int io;<br />
	std::string stTest;<br />
	<br />
	io = test1("testing testing");
)

And the results are:
Both in debug -> works (so I cannot find information about the crash)
Both in release -> works
One in debug and one in release -> Crash to death

I think that the problem is in the project options, because there is nothing strange in the code.
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 
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 

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.