Click here to Skip to main content
14,236,507 members

C / C++ / MFC

 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 6:45
memberHack Baba4-Dec-18 6:45 
GeneralRe: String Search In C++ Pin
Richard MacCutchan4-Dec-18 8:49
protectorRichard MacCutchan4-Dec-18 8:49 
AnswerRe: String Search In C++ Pin
Joe Woodbury4-Dec-18 9:04
professionalJoe Woodbury4-Dec-18 9:04 
GeneralRe: String Search In C++ Pin
Hack Baba4-Dec-18 23:58
memberHack Baba4-Dec-18 23:58 
GeneralRe: String Search In C++ Pin
Joe Woodbury5-Dec-18 6:21
professionalJoe Woodbury5-Dec-18 6:21 
SuggestionRe: String Search In C++ Pin
David Crow5-Dec-18 2:54
memberDavid Crow5-Dec-18 2:54 
QuestionCComobox::DrawItem list box entries Disappears In Release Mode Pin
ForNow3-Dec-18 16:10
memberForNow3-Dec-18 16:10 
AnswerRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
leon de boer3-Dec-18 17:43
memberleon de boer3-Dec-18 17:43 
Your code is relying on a local variable value to start zero and it won't be in release (they start unset usually just junk whatever was on the stack beforehand when it gets allocated) but in debug it zeros all local variables. It is one of the core differences between debug and release mode.
Usually its something like a bool flag that is assumed to start false (0) which won't in release mode as any non zero value means true.

Just check which local variable(s) you are assuming starts as zero and set the thing to zero manually Smile | :)

/* this will behave the same as someGoodFunc in debug but not in release */
void someWrongFunc (void)
{
    bool IamaBadBool;
}

void someGoodFunc (void)
{
    bool IamGoodBool = 0;
}

In vino veritas


modified 3-Dec-18 23:50pm.

GeneralRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
ForNow4-Dec-18 1:44
memberForNow4-Dec-18 1:44 
GeneralRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
leon de boer4-Dec-18 7:41
memberleon de boer4-Dec-18 7:41 
GeneralRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
Victor Nijegorodov4-Dec-18 8:27
memberVictor Nijegorodov4-Dec-18 8:27 
AnswerRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
Victor Nijegorodov3-Dec-18 20:27
memberVictor Nijegorodov3-Dec-18 20:27 
GeneralRe: CComobox::DrawItem list box entries Disappears In Release Mode Pin
ForNow4-Dec-18 1:46
memberForNow4-Dec-18 1:46 
QuestionHow to resolve such exception? Pin
Member 140527782-Dec-18 18:49
memberMember 140527782-Dec-18 18:49 
AnswerRe: How to resolve such exception? Pin
CPallini2-Dec-18 20:41
mveCPallini2-Dec-18 20:41 
AnswerRe: How to resolve such exception? Pin
Richard MacCutchan2-Dec-18 23:45
protectorRichard MacCutchan2-Dec-18 23:45 
AnswerRe: How to resolve such exception? Pin
Victor Nijegorodov3-Dec-18 0:50
memberVictor Nijegorodov3-Dec-18 0:50 
QuestionSMS Access Pin
Bram van Kampen2-Dec-18 15:20
memberBram van Kampen2-Dec-18 15:20 
AnswerRe: SMS Access Pin
Richard MacCutchan2-Dec-18 23:47
protectorRichard MacCutchan2-Dec-18 23:47 
GeneralRe: SMS Access Pin
Bram van Kampen3-Dec-18 14:52
memberBram van Kampen3-Dec-18 14:52 
GeneralRe: SMS Access Pin
leon de boer3-Dec-18 15:46
memberleon de boer3-Dec-18 15:46 
GeneralRe: SMS Access Pin
Richard MacCutchan3-Dec-18 21:49
protectorRichard MacCutchan3-Dec-18 21:49 
QuestionUsing a selection Pin
_Flaviu2-Dec-18 2:56
member_Flaviu2-Dec-18 2:56 
AnswerRe: Using a selection Pin
Victor Nijegorodov2-Dec-18 9:12
memberVictor Nijegorodov2-Dec-18 9:12 
GeneralRe: Using a selection Pin
_Flaviu2-Dec-18 23:24
member_Flaviu2-Dec-18 23:24 

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.