Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linking Errors Pin
ShankarPS28-Jun-04 17:48
ShankarPS28-Jun-04 17:48 
GeneralRe: Linking Errors Pin
leo7728-Jun-04 20:29
leo7728-Jun-04 20:29 
GeneralAvoiding a memory leak Pin
georgiek5028-Jun-04 16:21
georgiek5028-Jun-04 16:21 
GeneralRe: Avoiding a memory leak Pin
Anthony_Yio28-Jun-04 16:42
Anthony_Yio28-Jun-04 16:42 
GeneralRe: Avoiding a memory leak Pin
Yulianto.28-Jun-04 16:52
Yulianto.28-Jun-04 16:52 
GeneralRe: Avoiding a memory leak Pin
georgiek5028-Jun-04 16:59
georgiek5028-Jun-04 16:59 
GeneralRe: Avoiding a memory leak Pin
georgiek5028-Jun-04 17:18
georgiek5028-Jun-04 17:18 
GeneralRe: Avoiding a memory leak Pin
John R. Shaw28-Jun-04 18:28
John R. Shaw28-Jun-04 18:28 
Actualy ommitting the brackets does free the memory, but only calls that destructor for the first object in the array. The brackets tells delete to call the destructor of every item in the array. Therefor, for basic types you could get away with not using the brackets (not recommened).

If you are creating an array of objects that also allocate memory for there own use, then you must use the brackets so that there destructors will be called inorder for them to clean up after themselfs (a.k.a. free any memory they allocated).

INTP
GeneralRe: Avoiding a memory leak Pin
Anthony_Yio28-Jun-04 17:20
Anthony_Yio28-Jun-04 17:20 
GeneralRe: Avoiding a memory leak Pin
palbano28-Jun-04 19:08
palbano28-Jun-04 19:08 
GeneralCS Pin
kagbe28-Jun-04 14:05
kagbe28-Jun-04 14:05 
GeneralRe: CS Pin
Ryan Binns28-Jun-04 18:48
Ryan Binns28-Jun-04 18:48 
GeneralRe: CS Pin
kagbe29-Jun-04 0:58
kagbe29-Jun-04 0:58 
GeneralRe: CS Pin
eggie528-Jun-04 18:49
eggie528-Jun-04 18:49 
GeneralLinking problems Pin
Atlence28-Jun-04 13:48
Atlence28-Jun-04 13:48 
GeneralRe: Linking problems Pin
Anthony_Yio28-Jun-04 16:55
Anthony_Yio28-Jun-04 16:55 
GeneralRe: Linking problems Pin
Atlence28-Jun-04 22:11
Atlence28-Jun-04 22:11 
GeneralRe: Linking problems Pin
Anthony_Yio28-Jun-04 22:25
Anthony_Yio28-Jun-04 22:25 
GeneralRe: Linking problems Pin
Atlence28-Jun-04 22:39
Atlence28-Jun-04 22:39 
GeneralRe: Linking problems Pin
Atlence30-Jun-04 5:08
Atlence30-Jun-04 5:08 
GeneralTray Icon (for CFormView) question Pin
kfaday28-Jun-04 12:08
kfaday28-Jun-04 12:08 
GeneralRe: Tray Icon (for CFormView) question Pin
Maarten Kools28-Jun-04 13:51
professionalMaarten Kools28-Jun-04 13:51 
GeneralChecksum over Ethernet Link Pin
jerry1211a28-Jun-04 11:51
jerry1211a28-Jun-04 11:51 
GeneralRe: Checksum over Ethernet Link Pin
Rick York28-Jun-04 13:11
mveRick York28-Jun-04 13:11 
GeneralRe: Checksum over Ethernet Link Pin
jerry1211a28-Jun-04 14:10
jerry1211a28-Jun-04 14:10 

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.