Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please Give me 10cm Line on Printer Pin
Kapoor Vikrant27-Sep-03 15:28
Kapoor Vikrant27-Sep-03 15:28 
QuestionHow can I remove the menu from a CFormView? Pin
DanYELL27-Sep-03 10:49
DanYELL27-Sep-03 10:49 
AnswerRe: How can I remove the menu from a CFormView? Pin
JWood27-Sep-03 11:41
JWood27-Sep-03 11:41 
GeneralRe: How can I remove the menu from a CFormView? Pin
DanYELL27-Sep-03 12:16
DanYELL27-Sep-03 12:16 
GeneralRe: How can I remove the menu from a CFormView? Pin
JWood27-Sep-03 12:40
JWood27-Sep-03 12:40 
GeneralRe: How can I remove the menu from a CFormView? Pin
JWood27-Sep-03 13:00
JWood27-Sep-03 13:00 
Generalusing Basic Runtime Checks in VC7 Pin
Jim Crafton27-Sep-03 8:31
Jim Crafton27-Sep-03 8:31 
GeneralRe: using Basic Runtime Checks in VC7 Pin
Mike Dimmick27-Sep-03 12:15
Mike Dimmick27-Sep-03 12:15 
In a debug build, the compiler generates stack frame setup code to account for every variable separately. In a release build, the optimiser works out which variables have overlapping lifetimes and allocates only enough space for the variables that can't share the same memory locations.

If you enable /RTCs, the compiler adds additional padding around any variables that it thinks could be subject to buffer overrun errors, and fills it with particular values. At the end of the function, the generated code checks to see if the values have been modified - if they have, it generates the runtime check dialog you saw.

You should leave this option turned on, and fix the buffer overflow that it detected. It could easily mean that a different variable had the overflow. To detect which variable, generate a listing file (/FAs or /FAcs) and examine the resulting .asm or .cod file to see where the compiler allocated each local variable. Alternatively you could inspect the addresses in the debugger.

If you can work out which area of memory is being corrupted, you can use the debugger's Data Breakpoint facility to discover which piece of code is writing to that address.
GeneralWinExec Pin
OTVAC30527-Sep-03 8:27
OTVAC30527-Sep-03 8:27 
GeneralRe: WinExec Pin
Ravi Bhavnani27-Sep-03 9:51
professionalRavi Bhavnani27-Sep-03 9:51 
GeneralRe: WinExec Pin
Alexander M.,27-Sep-03 12:03
Alexander M.,27-Sep-03 12:03 
GeneralRe: WinExec Pin
Mike Dimmick27-Sep-03 12:30
Mike Dimmick27-Sep-03 12:30 
QuestionBackgnd image in list messes up the drag image? Pin
Michael Dunn27-Sep-03 8:24
sitebuilderMichael Dunn27-Sep-03 8:24 
AnswerRe: Backgnd image in list messes up the drag image? Pin
Jim Crafton27-Sep-03 8:34
Jim Crafton27-Sep-03 8:34 
GeneralRe: Backgnd image in list messes up the drag image? Pin
Michael Dunn27-Sep-03 9:45
sitebuilderMichael Dunn27-Sep-03 9:45 
GeneralWinExec Pin
OTVAC30527-Sep-03 8:22
OTVAC30527-Sep-03 8:22 
GeneralPlug-in Architecture Pin
Manish K. Agarwal27-Sep-03 6:34
Manish K. Agarwal27-Sep-03 6:34 
GeneralRe: Plug-in Architecture Pin
Jim Crafton27-Sep-03 7:52
Jim Crafton27-Sep-03 7:52 
GeneralOpen Webpage in a new window from code Pin
Mathias S.27-Sep-03 6:23
Mathias S.27-Sep-03 6:23 
GeneralRe: Open Webpage in a new window from code Pin
Mathias S.27-Sep-03 6:39
Mathias S.27-Sep-03 6:39 
GeneralLarge numbers (100 digits) Pin
Rickard Andersson2027-Sep-03 5:41
Rickard Andersson2027-Sep-03 5:41 
GeneralRe: Large numbers (100 digits) Pin
Joe Woodbury27-Sep-03 7:01
professionalJoe Woodbury27-Sep-03 7:01 
GeneralRe: Large numbers (100 digits) Pin
Rickard Andersson2027-Sep-03 11:17
Rickard Andersson2027-Sep-03 11:17 
GeneralRe: Large numbers (100 digits) Pin
valikac27-Sep-03 7:03
valikac27-Sep-03 7:03 
GeneralReading track and artist info from a cd Pin
DABHand27-Sep-03 5:12
DABHand27-Sep-03 5:12 

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.