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

C / C++ / MFC

 
GeneralSingle thread to multi-thread conversion problem Pin
vineas8-Sep-04 4:02
vineas8-Sep-04 4:02 
GeneralRe: Single thread to multi-thread conversion problem Pin
Neville Franks8-Sep-04 10:32
Neville Franks8-Sep-04 10:32 
GeneralRe: Single thread to multi-thread conversion problem Pin
vineas8-Sep-04 11:10
vineas8-Sep-04 11:10 
GeneralRe: Single thread to multi-thread conversion problem Pin
Neville Franks8-Sep-04 11:28
Neville Franks8-Sep-04 11:28 
GeneralRe: Single thread to multi-thread conversion problem Pin
vineas9-Sep-04 3:29
vineas9-Sep-04 3:29 
GeneralRe: Single thread to multi-thread conversion problem Pin
Neville Franks9-Sep-04 10:23
Neville Franks9-Sep-04 10:23 
GeneralPhilosophical question :-) Pin
Cedric Moonen8-Sep-04 3:35
Cedric Moonen8-Sep-04 3:35 
GeneralRe: Philosophical question :-) Pin
Ryan Binns8-Sep-04 4:07
Ryan Binns8-Sep-04 4:07 
The rule is simple. Calling delete on a void pointer frees the memory pointed to by the pointer (regardless of what type it is), but never calls any destructors.

Note that the actual object type pointed to makes no difference. The runtime library keeps track of the size and base address of each memory block allocated, and uses these to free the memory properly. It doesn't care what the memory contents is or what type of object it points to.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Philosophical question :-) Pin
Cedric Moonen8-Sep-04 4:31
Cedric Moonen8-Sep-04 4:31 
GeneralRe: Philosophical question :-) Pin
Ryan Binns8-Sep-04 13:24
Ryan Binns8-Sep-04 13:24 
GeneralDetect current language Pin
Anonymous8-Sep-04 3:33
Anonymous8-Sep-04 3:33 
GeneralRe: Detect current language Pin
Ivan Cachicatari8-Sep-04 5:43
Ivan Cachicatari8-Sep-04 5:43 
GeneralRe: Detect current language Pin
David Crow8-Sep-04 5:47
David Crow8-Sep-04 5:47 
GeneralRe: Detect current language Pin
Moak24-Sep-04 1:33
Moak24-Sep-04 1:33 
Generalabout using vmr9 Pin
yingkou8-Sep-04 3:29
yingkou8-Sep-04 3:29 
QuestionHow can I push out my app Pin
Larsson8-Sep-04 2:18
Larsson8-Sep-04 2:18 
Generalconvert bmp to 2-D array Pin
hanivoo8-Sep-04 1:49
hanivoo8-Sep-04 1:49 
GeneralRe: convert bmp to 2-D array Pin
Bob Stanneveld8-Sep-04 6:29
Bob Stanneveld8-Sep-04 6:29 
GeneralCannot find header file compile time Pin
intrigued8-Sep-04 1:40
intrigued8-Sep-04 1:40 
GeneralRe: Cannot find header file compile time Pin
P-Rex8-Sep-04 3:19
P-Rex8-Sep-04 3:19 
GeneralRe: A problem with multi line edit box and check box Pin
David Crow8-Sep-04 5:49
David Crow8-Sep-04 5:49 
GeneralBit Fields - Again Pin
sweep1238-Sep-04 1:29
sweep1238-Sep-04 1:29 
GeneralRe: Bit Fields - Again Pin
Ryan Binns8-Sep-04 4:16
Ryan Binns8-Sep-04 4:16 
GeneralODBC Driver for Access - database password Pin
Member 12584918-Sep-04 1:23
Member 12584918-Sep-04 1:23 
GeneralRe: ODBC Driver for Access - database password Pin
Arsalan Malik8-Sep-04 1:53
Arsalan Malik8-Sep-04 1:53 

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.