Click here to Skip to main content
15,909,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem getting widht/height of formview Pin
basementman24-Apr-03 7:32
basementman24-Apr-03 7:32 
Generalstring value in watch window Pin
Hugo Hallman22-Apr-03 22:47
Hugo Hallman22-Apr-03 22:47 
GeneralRe: string value in watch window Pin
Martyn Pearson23-Apr-03 1:00
Martyn Pearson23-Apr-03 1:00 
GeneralRe: string value in watch window Pin
David Crow23-Apr-03 3:15
David Crow23-Apr-03 3:15 
GeneralRe: string value in watch window Pin
Hugo Hallman27-Apr-03 9:23
Hugo Hallman27-Apr-03 9:23 
QuestionHow do I put an icon on Single Document screen.. Pin
IrishSonic22-Apr-03 22:38
IrishSonic22-Apr-03 22:38 
AnswerRe: How do I put an icon on Single Document screen.. Pin
David Crow23-Apr-03 3:03
David Crow23-Apr-03 3:03 
GeneralMemory check error Pin
Cedric Moonen22-Apr-03 22:25
Cedric Moonen22-Apr-03 22:25 
Hello,

I have a structure that looks like:
struct STRUCT_EXAMPLE<br />
{<br />
     int Data1;<br />
     int Data2;<br />
     float Data3;<br />
     ...<br />
<br />
     void Clear() { memset(this,0,sizeof(STRUCT_EXAMPLE)); }<br />
};


Now, I allocate an "array" of this structure:
STRUCT_EXAMPLE* pPtr = new STRUCT_EXAMPLE[NewValue];<br />
for (int i=0;i<NewValue;i++)<br />
   pPtr[i].Clear();


Everything works fine but when I delete the array:
if (pPtr)<br />
delete[] pPtr;


I have a memory check error:
memory check error at 0x0145C630 = 0x00, should be 0xFD.
memory check error at 0x0145C631 = 0x00, should be 0xFD.
memory check error at 0x0145C632 = 0x00, should be 0xFD.
memory check error at 0x0145C633 = 0x00, should be 0xFD.

and the first adress byte is the adress of the first element of my array (so it's normal that it is 0 because I want the first Data1 in the the first element of the array to be 0)!!

Can someone help me ??
Thanks
GeneralRe: Memory check error Pin
Neville Franks23-Apr-03 2:45
Neville Franks23-Apr-03 2:45 
GeneralResolved Pin
Cedric Moonen23-Apr-03 2:53
Cedric Moonen23-Apr-03 2:53 
QuestionFormat Options - BOLD? Pin
Anonymous22-Apr-03 20:34
Anonymous22-Apr-03 20:34 
QuestionAlways use memcpy instead of strcpy? Pin
George222-Apr-03 20:33
George222-Apr-03 20:33 
AnswerRe: Always use memcpy instead of strcpy? Pin
jhwurmbach22-Apr-03 21:45
jhwurmbach22-Apr-03 21:45 
GeneralRe: Always use memcpy instead of strcpy? Pin
George222-Apr-03 23:35
George222-Apr-03 23:35 
GeneralRe: Always use memcpy instead of strcpy? Pin
jhwurmbach23-Apr-03 1:24
jhwurmbach23-Apr-03 1:24 
GeneralRe: Always use memcpy instead of strcpy? Pin
George223-Apr-03 1:54
George223-Apr-03 1:54 
AnswerRe: Always use memcpy instead of strcpy? Pin
Tim Smith23-Apr-03 4:10
Tim Smith23-Apr-03 4:10 
GeneralRe: Always use memcpy instead of strcpy? Pin
George224-Apr-03 0:17
George224-Apr-03 0:17 
QuestionHow to resume the file download Pin
Gowrishankar A.22-Apr-03 19:58
Gowrishankar A.22-Apr-03 19:58 
AnswerRe: How to resume the file download Pin
bryce22-Apr-03 20:57
bryce22-Apr-03 20:57 
AnswerRe: How to resume the file download Pin
Redeemer-dk23-Apr-03 1:14
Redeemer-dk23-Apr-03 1:14 
QuestionFont background? Pin
bobthemonkey22-Apr-03 19:28
bobthemonkey22-Apr-03 19:28 
AnswerRe: Font background? Pin
Rage22-Apr-03 20:36
professionalRage22-Apr-03 20:36 
AnswerRe: Font background? Pin
Anonymous22-Apr-03 20:40
Anonymous22-Apr-03 20:40 
GeneralHelp required in MFC Pin
RaajaOfSelf22-Apr-03 19:24
RaajaOfSelf22-Apr-03 19:24 

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.