Click here to Skip to main content
15,887,815 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionvariadic templates problem Pin
FriendOfAsherah28-Jul-16 23:49
FriendOfAsherah28-Jul-16 23:49 
QuestionTrying to understand my mistake... with pointers Pin
Blubbo28-Jul-16 8:04
Blubbo28-Jul-16 8:04 
AnswerRe: Trying to understand my mistake... with pointers Pin
jeron128-Jul-16 9:30
jeron128-Jul-16 9:30 
AnswerRe: Trying to understand my mistake... with pointers Pin
leon de boer29-Jul-16 17:53
leon de boer29-Jul-16 17:53 
Questionhow to create a file input button in microsoft visual c ++ ? Pin
jhonganteng28-Jul-16 3:46
jhonganteng28-Jul-16 3:46 
AnswerRe: how to create a file input button in microsoft visual c ++ ? Pin
Richard MacCutchan28-Jul-16 4:30
mveRichard MacCutchan28-Jul-16 4:30 
QuestionHelp With Exception Pin
ForNow26-Jul-16 12:47
ForNow26-Jul-16 12:47 
AnswerRe: Help With Exception Pin
leon de boer26-Jul-16 17:22
leon de boer26-Jul-16 17:22 
The big difference for variables between DEBUG mode and RELEASE mode is stack variables aren't zeroed.

The simple statement
void SomeFunc (void){
int i;

}


i is guaranteed to start as zero in DEBUG mode but could be literally anything in RELEASE mode.

In the above if you need the variable to start as zero you need it.
void SomeFunc (void){
int i = 0;

}


Now you most likely have a structure or pointer variable you are assuming is zero but you have not explicitly set it in a local variable. Your code will then always work in DEBUG mode but almost never works in RELEASE mode.
In vino veritas

GeneralRe: Help With Exception Pin
ForNow26-Jul-16 20:01
ForNow26-Jul-16 20:01 
GeneralRe: Help With Exception Pin
leon de boer26-Jul-16 22:33
leon de boer26-Jul-16 22:33 
AnswerRe: Help With Exception Pin
Jochen Arndt26-Jul-16 21:47
professionalJochen Arndt26-Jul-16 21:47 
GeneralRe: Help With Exception Pin
ForNow27-Jul-16 2:14
ForNow27-Jul-16 2:14 
GeneralRe: Help With Exception Pin
Jochen Arndt27-Jul-16 2:18
professionalJochen Arndt27-Jul-16 2:18 
GeneralRe: Help With Exception you where right !!!!!!!! Pin
ForNow27-Jul-16 15:15
ForNow27-Jul-16 15:15 
QuestionChoosing between strings Pin
Anthony Appleyard26-Jul-16 9:47
Anthony Appleyard26-Jul-16 9:47 
AnswerRe: Choosing between strings Pin
Richard MacCutchan26-Jul-16 21:11
mveRichard MacCutchan26-Jul-16 21:11 
QuestionNewbee Exception handling Guidance Pin
ForNow25-Jul-16 4:35
ForNow25-Jul-16 4:35 
AnswerRe: Newbee Exception handling Guidance Pin
Jochen Arndt25-Jul-16 4:57
professionalJochen Arndt25-Jul-16 4:57 
GeneralRe: Newbee Exception handling Guidance Pin
ForNow25-Jul-16 5:31
ForNow25-Jul-16 5:31 
AnswerRe: Newbee Exception handling Guidance Pin
Richard MacCutchan25-Jul-16 5:12
mveRichard MacCutchan25-Jul-16 5:12 
GeneralRe: Newbee Exception handling Guidance Pin
ForNow25-Jul-16 5:30
ForNow25-Jul-16 5:30 
GeneralRe: Newbee Exception handling Guidance Pin
ForNow25-Jul-16 6:32
ForNow25-Jul-16 6:32 
GeneralRe: Newbee Exception handling Guidance Pin
Richard MacCutchan25-Jul-16 6:46
mveRichard MacCutchan25-Jul-16 6:46 
QuestionRe: Newbee Exception handling Guidance Pin
David Crow25-Jul-16 16:59
David Crow25-Jul-16 16:59 
AnswerRe: Newbee Exception handling Guidance Pin
ForNow26-Jul-16 1:56
ForNow26-Jul-16 1:56 

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.