Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to use IDispatch Interface in MFC Pin
a_day26-Mar-06 10:19
a_day26-Mar-06 10:19 
AnswerRe: How to use IDispatch Interface in MFC Pin
Hamid_RT26-Mar-06 17:58
Hamid_RT26-Mar-06 17:58 
GeneralRe: How to use IDispatch Interface in MFC Pin
a_day26-Mar-06 22:55
a_day26-Mar-06 22:55 
Questionmd5 hashing fails one 1 computer out a hundred Pin
urizn26-Mar-06 8:38
urizn26-Mar-06 8:38 
AnswerRe: md5 hashing fails one 1 computer out a hundred Pin
Jack Puppy26-Mar-06 9:45
Jack Puppy26-Mar-06 9:45 
AnswerRe: md5 hashing fails one 1 computer out a hundred Pin
Michael Dunn26-Mar-06 12:29
sitebuilderMichael Dunn26-Mar-06 12:29 
Questionnew and delete Pin
Waldermort26-Mar-06 4:51
Waldermort26-Mar-06 4:51 
AnswerRe: new and delete Pin
Justin Tay26-Mar-06 5:48
Justin Tay26-Mar-06 5:48 
In debug builds, new allocates more memory than requested and fills it with a certain byte pattern. When deleted, it checks to see if this byte pattern is still there, if not, you've written past the memory that you've requested. In other words, you didn't request enough memory and written past your buffer.

I think
bin = new char[size];
should be
bin = new char[size + 1];

to take into account the terminating null.

GeneralRe: new and delete Pin
Waldermort26-Mar-06 6:58
Waldermort26-Mar-06 6:58 
GeneralRe: new and delete Pin
RChin26-Mar-06 7:34
RChin26-Mar-06 7:34 
GeneralRe: new and delete Pin
PJ Arends26-Mar-06 10:11
professionalPJ Arends26-Mar-06 10:11 
AnswerRe: new and delete Pin
Stephen Hewitt26-Mar-06 11:33
Stephen Hewitt26-Mar-06 11:33 
AnswerRe: new and delete Pin
Axter26-Mar-06 14:53
professionalAxter26-Mar-06 14:53 
GeneralRe: new and delete Pin
sunit526-Mar-06 17:51
sunit526-Mar-06 17:51 
GeneralRe: new and delete Pin
Eytukan26-Mar-06 21:55
Eytukan26-Mar-06 21:55 
GeneralRe: new and delete Pin
sunit527-Mar-06 0:58
sunit527-Mar-06 0:58 
GeneralRe: new and delete Pin
Waldermort27-Mar-06 1:59
Waldermort27-Mar-06 1:59 
GeneralRe: new and delete Pin
sunit527-Mar-06 18:28
sunit527-Mar-06 18:28 
QuestionQuick answer would be great Pin
Waldermort26-Mar-06 3:14
Waldermort26-Mar-06 3:14 
AnswerRe: Quick answer would be great Pin
toxcct26-Mar-06 3:44
toxcct26-Mar-06 3:44 
AnswerRe: Quick answer would be great Pin
eli1502197926-Mar-06 3:45
eli1502197926-Mar-06 3:45 
GeneralRe: Quick answer would be great Pin
Waldermort26-Mar-06 3:54
Waldermort26-Mar-06 3:54 
QuestionExporting functions with strings Pin
mosquitooth26-Mar-06 1:49
mosquitooth26-Mar-06 1:49 
AnswerRe: Exporting functions with strings Pin
Giannakakis Kostas26-Mar-06 18:35
professionalGiannakakis Kostas26-Mar-06 18:35 
AnswerRe: Abstract dataype Pin
PJ Arends26-Mar-06 11:31
professionalPJ Arends26-Mar-06 11:31 

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.