Click here to Skip to main content
15,886,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan18-Jan-14 22:13
mveRichard MacCutchan18-Jan-14 22:13 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky19-Jan-14 1:07
a_matseevsky19-Jan-14 1:07 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan19-Jan-14 1:08
mveRichard MacCutchan19-Jan-14 1:08 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky19-Jan-14 10:54
a_matseevsky19-Jan-14 10:54 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
pkfox19-Jan-14 20:20
professionalpkfox19-Jan-14 20:20 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
Richard MacCutchan19-Jan-14 22:21
mveRichard MacCutchan19-Jan-14 22:21 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
jschell18-Jan-14 11:51
jschell18-Jan-14 11:51 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky18-Jan-14 17:42
a_matseevsky18-Jan-14 17:42 
I can only recommend to you reread the whole discussion. I do know now, where the problem is. OK, compiler is absolutely stable. No problem with it. But it works incorrectly. It reserves some places in a stack for temporary variables. In fact, these variables stores content of co-processor's registers. Some of such temporary variables overlap (partially or completely) another local variables. It might be no problem- some local variables are visible only within some block, not within the whole procedure. If execution of code leaves some block (part of code within such {} brackets), all variables, declared within this block, becomes inaccessible and their place in a stack may be rewritten by another local variable. But compiler creates exe file, which performs this op even when some local variable is visible and accessible!!! And it happens not only with RECT structure, but with some of other local variables too. I saw this process, when I was running release version under debugger. Look up, where I placed piece of my code. Variable "h" was rewritten at least once. If it is not a compiler's bug, I'm definitely an elefant.
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
jschell20-Jan-14 12:45
jschell20-Jan-14 12:45 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky20-Jan-14 12:54
a_matseevsky20-Jan-14 12:54 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
jschell23-Jan-14 13:11
jschell23-Jan-14 13:11 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky23-Jan-14 18:00
a_matseevsky23-Jan-14 18:00 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
jschell24-Jan-14 12:17
jschell24-Jan-14 12:17 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky24-Jan-14 16:22
a_matseevsky24-Jan-14 16:22 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
jschell25-Jan-14 12:37
jschell25-Jan-14 12:37 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky25-Jan-14 18:56
a_matseevsky25-Jan-14 18:56 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
jschell26-Jan-14 12:29
jschell26-Jan-14 12:29 
GeneralRe: Bug in Visual Studio 2005 compiler? Pin
a_matseevsky26-Jan-14 20:24
a_matseevsky26-Jan-14 20:24 
QuestionShellExecuteEx with Windows 8 Pin
Member 147103916-Jan-14 8:16
Member 147103916-Jan-14 8:16 
AnswerRe: ShellExecuteEx with Windows 8 Pin
2374116-Jan-14 10:14
2374116-Jan-14 10:14 
GeneralRe: ShellExecuteEx with Windows 8 Pin
Member 147103916-Jan-14 14:33
Member 147103916-Jan-14 14:33 
GeneralRe: ShellExecuteEx with Windows 8 Pin
2374117-Jan-14 6:36
2374117-Jan-14 6:36 
GeneralRe: ShellExecuteEx with Windows 8 Pin
Member 147103917-Jan-14 9:03
Member 147103917-Jan-14 9:03 
GeneralRe: ShellExecuteEx with Windows 8 Pin
Member 147103918-Jan-14 11:25
Member 147103918-Jan-14 11:25 
QuestionRe: ShellExecuteEx with Windows 8 Pin
Richard MacCutchan16-Jan-14 22:05
mveRichard MacCutchan16-Jan-14 22:05 

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.