Click here to Skip to main content
15,916,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Include Help Needed Pin
Jeryth10-Mar-05 1:11
Jeryth10-Mar-05 1:11 
GeneralRe: Include Help Needed Pin
Steen Krogsgaard10-Mar-05 1:25
Steen Krogsgaard10-Mar-05 1:25 
GeneralRe: Include Help Needed Pin
Jeryth10-Mar-05 5:18
Jeryth10-Mar-05 5:18 
GeneralRe: Include Help Needed Pin
Steen Krogsgaard10-Mar-05 5:27
Steen Krogsgaard10-Mar-05 5:27 
GeneralRe: Include Help Needed Pin
Jeryth10-Mar-05 6:11
Jeryth10-Mar-05 6:11 
GeneralRe: Include Help Needed Pin
Steen Krogsgaard 210-Mar-05 7:34
Steen Krogsgaard 210-Mar-05 7:34 
GeneralRe: Include Help Needed Pin
Jeryth14-Mar-05 5:50
Jeryth14-Mar-05 5:50 
GeneralRe: Include Help Needed Pin
Steen Krogsgaard 214-Mar-05 9:32
Steen Krogsgaard 214-Mar-05 9:32 
I think you made a memory overwrite somewhere in your code. MFC new puts guard bytes around your allocated block and checks if something has screwed up your block everytime you call new or delete - that's why you get the message in the destructor, as that's probably the first time after the error occurred that new or delete gets called. Alas, it has nothing to do with the destructor or the delete[] call as such. See this[^] MSDN article for more info.

Recheck your code for places where you use strcpy or similar function without checking the length of the arguments, especially your cable variable. Use strncpy instead.

Cheers
Steen
GeneralRe: Include Help Needed Pin
Jeryth14-Mar-05 17:29
Jeryth14-Mar-05 17:29 
GeneralRe: Include Help Needed Pin
Steen Krogsgaard 217-Mar-05 7:15
Steen Krogsgaard 217-Mar-05 7:15 
GeneralRe: Include Help Needed Pin
Steen Krogsgaard10-Mar-05 1:28
Steen Krogsgaard10-Mar-05 1:28 
GeneralRe: Include Help Needed Pin
Jeryth10-Mar-05 4:40
Jeryth10-Mar-05 4:40 
Generalexecution! Pin
mpapeo9-Mar-05 7:42
mpapeo9-Mar-05 7:42 
GeneralRe: execution! Pin
David Crow9-Mar-05 8:12
David Crow9-Mar-05 8:12 
GeneralRe: execution! Pin
mpapeo9-Mar-05 8:26
mpapeo9-Mar-05 8:26 
GeneralRe: execution! Pin
David Crow9-Mar-05 8:57
David Crow9-Mar-05 8:57 
GeneralRe: execution! Pin
mpapeo9-Mar-05 10:04
mpapeo9-Mar-05 10:04 
GeneralRe: execution! Pin
David Crow9-Mar-05 10:11
David Crow9-Mar-05 10:11 
GeneralRe: execution! Pin
mpapeo9-Mar-05 12:33
mpapeo9-Mar-05 12:33 
GeneralRe: execution! Pin
David Crow10-Mar-05 2:53
David Crow10-Mar-05 2:53 
GeneralRe: execution! Pin
mpapeo10-Mar-05 11:09
mpapeo10-Mar-05 11:09 
GeneralRe: execution! Pin
David Crow10-Mar-05 11:19
David Crow10-Mar-05 11:19 
GeneralRe: execution! Pin
mpapeo10-Mar-05 11:44
mpapeo10-Mar-05 11:44 
GeneralRe: execution! Pin
mpapeo10-Mar-05 14:20
mpapeo10-Mar-05 14:20 
Questioncan VC++ create a MAC version Pin
Mohsen Saad9-Mar-05 7:18
Mohsen Saad9-Mar-05 7:18 

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.