Click here to Skip to main content
15,847,653 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric8-Nov-11 23:02
Erudite_Eric8-Nov-11 23:02 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin9-Nov-11 5:03
professionalAlbert Holguin9-Nov-11 5:03 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Chuck O'Toole9-Nov-11 5:16
Chuck O'Toole9-Nov-11 5:16 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric9-Nov-11 23:50
Erudite_Eric9-Nov-11 23:50 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin10-Nov-11 12:51
professionalAlbert Holguin10-Nov-11 12:51 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric9-Nov-11 23:50
Erudite_Eric9-Nov-11 23:50 
AnswerRe: making a unsigned char array gives a buffer overrun error Pin
Chuck O'Toole9-Nov-11 5:15
Chuck O'Toole9-Nov-11 5:15 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric9-Nov-11 23:54
Erudite_Eric9-Nov-11 23:54 
Chuck O'Toole wrote:
You never mention going back to a stack buffer "after the code is good".


I did, here: http://www.codeproject.com/Messages/4071887/Re-making-a-unsigned-char-array-gives-a-buffer-ove.aspx[^]



Chuck O'Toole wrote:
IO is a "wait state" event and not chewing up cpu cycles,


I am talking user mode IO. Ring 3 Ring 0 transitions are really heavy. Surprisingly so in fact.

HW IO is generally very quick.

Chuck O'Toole wrote:
it's assumed


And surprisingly often, ignored. I can not tell you how many times I have had verifier barf on third party drivers, yet it is a tool MS introduced expresly to improve quality.

You would also not believe how often I have seen memory allocation used unchecked. Guaranteed BSOD as soon as resources get a bit tight.
==============================

Nothing to say.

GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin8-Nov-11 3:48
professionalAlbert Holguin8-Nov-11 3:48 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric8-Nov-11 23:04
Erudite_Eric8-Nov-11 23:04 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
User 5838527-Nov-11 16:53
User 5838527-Nov-11 16:53 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 21:53
Erudite_Eric7-Nov-11 21:53 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
User 5838527-Nov-11 22:14
User 5838527-Nov-11 22:14 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin8-Nov-11 3:51
professionalAlbert Holguin8-Nov-11 3:51 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 8:45
Erudite_Eric7-Nov-11 8:45 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin7-Nov-11 8:47
professionalAlbert Holguin7-Nov-11 8:47 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 9:10
Erudite_Eric7-Nov-11 9:10 
AnswerRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin7-Nov-11 8:22
professionalAlbert Holguin7-Nov-11 8:22 
AnswerRe: making a unsigned char array gives a buffer overrun error Pin
Stefan_Lang10-Nov-11 3:24
Stefan_Lang10-Nov-11 3:24 
QuestionMFC DLL Won't Initialise Pin
Kyudos6-Nov-11 12:59
Kyudos6-Nov-11 12:59 
AnswerRe: MFC DLL Won't Initialise Pin
Albert Holguin6-Nov-11 14:08
professionalAlbert Holguin6-Nov-11 14:08 
GeneralRe: MFC DLL Won't Initialise Pin
Kyudos6-Nov-11 16:51
Kyudos6-Nov-11 16:51 
GeneralRe: MFC DLL Won't Initialise Pin
Albert Holguin7-Nov-11 8:12
professionalAlbert Holguin7-Nov-11 8:12 
AnswerRe: MFC DLL Won't Initialise Pin
Richard Andrew x647-Nov-11 13:38
professionalRichard Andrew x647-Nov-11 13:38 
GeneralRe: MFC DLL Won't Initialise Pin
Kyudos8-Nov-11 2:28
Kyudos8-Nov-11 2:28 

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.