Click here to Skip to main content
15,881,089 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 22:04
Erudite_Eric8-Nov-11 22:04 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
User 5838527-Nov-11 15:53
User 5838527-Nov-11 15:53 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 20:53
Erudite_Eric7-Nov-11 20:53 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
User 5838527-Nov-11 21:14
User 5838527-Nov-11 21:14 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin8-Nov-11 2:51
professionalAlbert Holguin8-Nov-11 2:51 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 7:45
Erudite_Eric7-Nov-11 7:45 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin7-Nov-11 7:47
professionalAlbert Holguin7-Nov-11 7:47 
GeneralRe: making a unsigned char array gives a buffer overrun error Pin
Erudite_Eric7-Nov-11 8:10
Erudite_Eric7-Nov-11 8:10 
Because it is very easy to get sh*t data in code. With sh*t data it is very easy to overun a buffer. A stack cprruption is very hard to debug. A verifier barf on a heap overrun is very easy to debug.

It is that simple. Make your life simple.

Make the code 100%. Dont worry about speed. Modern languages have already killed performabnce to such an extent and memory is so cheap that for a commercial app on a PC it is wrong to think of speed and resources,

On a dedicated computer on a satellite with expensive limited HW it is a different thing, But think of this. You develope your code using heap based buffers, and when it is 100% solid, you then use stack based buffers. Smile | :)

See where I am going? It is called clever engineering. Develope the product. Make it perfect. Use any technique you can to achieve that, and the verifier tools from microsoft are very very good.
==============================

Nothing to say.

AnswerRe: making a unsigned char array gives a buffer overrun error Pin
Albert Holguin7-Nov-11 7:22
professionalAlbert Holguin7-Nov-11 7:22 
AnswerRe: making a unsigned char array gives a buffer overrun error Pin
Stefan_Lang10-Nov-11 2:24
Stefan_Lang10-Nov-11 2:24 
QuestionMFC DLL Won't Initialise Pin
Kyudos6-Nov-11 11:59
Kyudos6-Nov-11 11:59 
AnswerRe: MFC DLL Won't Initialise Pin
Albert Holguin6-Nov-11 13:08
professionalAlbert Holguin6-Nov-11 13:08 
GeneralRe: MFC DLL Won't Initialise Pin
Kyudos6-Nov-11 15:51
Kyudos6-Nov-11 15:51 
GeneralRe: MFC DLL Won't Initialise Pin
Albert Holguin7-Nov-11 7:12
professionalAlbert Holguin7-Nov-11 7:12 
AnswerRe: MFC DLL Won't Initialise Pin
Richard Andrew x647-Nov-11 12:38
professionalRichard Andrew x647-Nov-11 12:38 
GeneralRe: MFC DLL Won't Initialise Pin
Kyudos8-Nov-11 1:28
Kyudos8-Nov-11 1:28 
GeneralRe: MFC DLL Won't Initialise Pin
Richard Andrew x648-Nov-11 11:18
professionalRichard Andrew x648-Nov-11 11:18 
AnswerRe: MFC DLL Won't Initialise Pin
Kyudos21-Nov-11 16:06
Kyudos21-Nov-11 16:06 
QuestionProblem in Creating a directory Pin
Amrit Agr6-Nov-11 4:57
Amrit Agr6-Nov-11 4:57 
AnswerRe: Problem in Creating a directory Pin
André Kraak6-Nov-11 5:07
André Kraak6-Nov-11 5:07 
AnswerRe: Problem in Creating a directory Pin
Richard MacCutchan6-Nov-11 5:11
mveRichard MacCutchan6-Nov-11 5:11 
AnswerRe: Problem in Creating a directory Pin
User 74293386-Nov-11 6:34
professionalUser 74293386-Nov-11 6:34 
GeneralRe: Problem in Creating a directory Pin
Chuck O'Toole6-Nov-11 10:38
Chuck O'Toole6-Nov-11 10:38 
AnswerRe: Problem in Creating a directory Pin
«_Superman_»6-Nov-11 15:27
professional«_Superman_»6-Nov-11 15:27 
Questionupload a file from c++ using visual studio MFC to a php script Pin
carmaxuxo5-Nov-11 1:36
carmaxuxo5-Nov-11 1:36 

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.