Click here to Skip to main content
15,891,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
jschell wrote:
I read the following which you posted.

 

"but occurred again after some insignificant change in code (which was made far from the procedure, where problem occurred!)"

 

Presumably you do not understand what that statement means in terms of what I said and in terms of what you are claiming.


I do know. Assume you have a pointer, which points yo some array. Sentence like *(p+k)=a may cause a problem if k is greater than array's size. This is the typical problem, associated with pointers. In my case all was different. What I wrote clearly meant that I had changed the source C++ code, then compiler built executable and the problem disappeared. Then I changed code again, recompiled it and the problem occurred again. That's just what I meant. Where do you see pointers? Moreover, at that very moment when I wrote aforementioned text, I did not know, where the problem was. I only noticed, that code worked correctly when I had excluded max and min. But problem occurred again! The most remarkable was the fact that I did not change suspicious procedure- changes had made far from it. But if one single line of code has been changed, compiler compiles the whole file with this line of code. I got compiler to build release with debug info and ran procedure under debugger. This was how I found where the problem is- I noticed that very command, which overwrote RECT structure and immediately found, why it happened. That's all.
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 
AnswerRe: ShellExecuteEx with Windows 8 Pin
Member 147103917-Jan-14 8:11
Member 147103917-Jan-14 8:11 
QuestionHow to define a 3d array with each dimension a different type in C++? Pin
Falconapollo12-Jan-14 21:53
Falconapollo12-Jan-14 21:53 
AnswerRe: How to define a 3d array with each dimension a different type in C++? Pin
Richard MacCutchan12-Jan-14 22:46
mveRichard MacCutchan12-Jan-14 22:46 
GeneralRe: How to define a 3d array with each dimension a different type in C++? Pin
Albert Holguin13-Jan-14 4:09
professionalAlbert Holguin13-Jan-14 4:09 
GeneralRe: How to define a 3d array with each dimension a different type in C++? Pin
Richard MacCutchan13-Jan-14 5:06
mveRichard MacCutchan13-Jan-14 5:06 
GeneralRe: How to define a 3d array with each dimension a different type in C++? Pin
Stefan_Lang14-Jan-14 23:39
Stefan_Lang14-Jan-14 23:39 
GeneralRe: How to define a 3d array with each dimension a different type in C++? Pin
Richard MacCutchan15-Jan-14 0:36
mveRichard MacCutchan15-Jan-14 0:36 
AnswerRe: How to define a 3d array with each dimension a different type in C++? Pin
CPallini13-Jan-14 6:39
mveCPallini13-Jan-14 6:39 

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.