Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To get the space in pendrive Pin
Vjys5-Mar-07 19:16
Vjys5-Mar-07 19:16 
GeneralRe: To get the space in pendrive Pin
Michael Dunn5-Mar-07 21:06
sitebuilderMichael Dunn5-Mar-07 21:06 
GeneralRe: To get the space in pendrive Pin
Vjys6-Mar-07 2:43
Vjys6-Mar-07 2:43 
QuestionArray of objects without default constructor gives runtime error Pin
sawerr4-Mar-07 23:38
sawerr4-Mar-07 23:38 
AnswerRe: Array of objects without default constructor gives runtime error Pin
BadKarma4-Mar-07 23:50
BadKarma4-Mar-07 23:50 
GeneralRe: Array of objects without default constructor gives runtime error Pin
sawerr5-Mar-07 0:12
sawerr5-Mar-07 0:12 
AnswerRe: Array of objects without default constructor gives runtime error Pin
prasad_som5-Mar-07 0:11
prasad_som5-Mar-07 0:11 
QuestionDebugHeap --> memory overwritten[modified] Pin
baerten4-Mar-07 23:24
baerten4-Mar-07 23:24 
Hi there Smile | :)

Since a sereval time i have very often strange problems with local variables.

char xxx[10] will cause an DebugHeapError by destruction ( if the function terminates )
a char *xxx = (char*)malloc(sizeof(char)*10); with a free(xxx); resolves the problem

a special DBF-Type (Date4) causes the same error.
The parameter pb from the function-calling static int __cdecl checkBytes(unsigned char * pb, ...
is unreadable (which causes the error)

Why are this kind of errors produces ( and why not since the begeinning of the project )

Big thanks


-- modified at 6:08 Monday 5th March, 2007

i debug the function which causes the error, now i see that the Date4 Pointer ( i changed the locale Date4 into a Date4*) will be overwritten with data at the initialisation of a char sss[10];

Why does the memory will be overwritten?WTF | :WTF:
AnswerRe: DebugHeap --> memory overwritten[modified] Pin
Cedric Moonen5-Mar-07 0:43
Cedric Moonen5-Mar-07 0:43 
GeneralRe: DebugHeap --> memory overwritten[modified] Pin
baerten5-Mar-07 1:19
baerten5-Mar-07 1:19 
GeneralRe: DebugHeap --> memory overwritten[modified] Pin
Cedric Moonen5-Mar-07 3:09
Cedric Moonen5-Mar-07 3:09 
GeneralRe: DebugHeap --> memory overwritten[modified] Pin
prasad_som5-Mar-07 1:07
prasad_som5-Mar-07 1:07 
QuestionTo list files in MFC? Pin
Malini Nair4-Mar-07 23:21
Malini Nair4-Mar-07 23:21 
AnswerRe: To list files in MFC? Pin
Dmitry Khudorozhkov4-Mar-07 23:26
Dmitry Khudorozhkov4-Mar-07 23:26 
AnswerRe: To list files in MFC? Pin
Hamid_RT5-Mar-07 6:46
Hamid_RT5-Mar-07 6:46 
Questionstd::list in visual studio 2005? Pin
$uresh $hanmugam4-Mar-07 23:01
$uresh $hanmugam4-Mar-07 23:01 
AnswerRe: std::list in visual studio 2005? Pin
Stephen Hewitt6-Mar-07 13:03
Stephen Hewitt6-Mar-07 13:03 
QuestionVC++ - Display Pin
anu78734-Mar-07 22:32
anu78734-Mar-07 22:32 
QuestionRe: VC++ - Display Pin
prasad_som4-Mar-07 22:36
prasad_som4-Mar-07 22:36 
Questionresizing bitmaps in vc++ Pin
Susanta5784-Mar-07 22:13
Susanta5784-Mar-07 22:13 
AnswerRe: resizing bitmaps in vc++ Pin
Rajesh R Subramanian4-Mar-07 22:38
professionalRajesh R Subramanian4-Mar-07 22:38 
AnswerRe: resizing bitmaps in vc++ Pin
Hamid_RT5-Mar-07 6:57
Hamid_RT5-Mar-07 6:57 
QuestionIs my PC standalone or connected to Network Pin
vibindia4-Mar-07 22:01
vibindia4-Mar-07 22:01 
AnswerRe: Is my PC standalone or connected to Network Pin
Sebastian Schneider4-Mar-07 22:39
Sebastian Schneider4-Mar-07 22:39 
AnswerRe: Is my PC standalone or connected to Network Pin
Dmitry Khudorozhkov4-Mar-07 23:18
Dmitry Khudorozhkov4-Mar-07 23: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.