Click here to Skip to main content
15,927,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Leak Pin
Tim Deveaux22-Jun-01 6:42
Tim Deveaux22-Jun-01 6:42 
Generalremember Pin
Amit Jain22-Jun-01 7:51
Amit Jain22-Jun-01 7:51 
GeneralRe: remember Pin
Malcolm McMahon25-Jun-01 4:48
Malcolm McMahon25-Jun-01 4:48 
GeneralRe: remember Pin
Amit Jain25-Jun-01 5:30
Amit Jain25-Jun-01 5:30 
GeneralRe: remember Pin
Malcolm McMahon25-Jun-01 6:09
Malcolm McMahon25-Jun-01 6:09 
Generalyupyup Pin
Amit Jain25-Jun-01 7:23
Amit Jain25-Jun-01 7:23 
GeneralRe: yupyup Pin
Malcolm McMahon26-Jun-01 3:23
Malcolm McMahon26-Jun-01 3:23 
GeneralRe: yupyup Pin
Tomasz Sowinski26-Jun-01 3:36
Tomasz Sowinski26-Jun-01 3:36 
> I'd be surprised, though, if it makes any difference to
> the code generated.

It makes a substantial difference. If you use new to allocate an array of objects and delete without square brackets, the destructors will not be called except one for element at 0th index.

CMyClass *p = new CMyClass[10];
// ... use p
delete p; // error -> only one d'tor call

Tomasz Sowinski -- http://www.shooltz.com.pl
GeneralRe: yupyup Pin
Malcolm McMahon26-Jun-01 5:05
Malcolm McMahon26-Jun-01 5:05 
GeneralVC++ COM and ASP stuff Pin
lea22-Jun-01 4:58
lea22-Jun-01 4:58 
GeneralRe: VC++ COM and ASP stuff Pin
Carlos Antollini22-Jun-01 5:26
Carlos Antollini22-Jun-01 5:26 
GeneralRe: VC++ COM and ASP stuff Pin
lea22-Jun-01 5:42
lea22-Jun-01 5:42 
GeneralRe: VC++ COM and ASP stuff Pin
Carlos Antollini22-Jun-01 6:22
Carlos Antollini22-Jun-01 6:22 
GeneralRe: VC++ COM and ASP stuff Pin
lea25-Jun-01 4:36
lea25-Jun-01 4:36 
GeneralRe: VC++ COM and ASP stuff Pin
lea25-Jun-01 4:36
lea25-Jun-01 4:36 
Generallogging method arguments Pin
Brian van der Beek22-Jun-01 4:24
Brian van der Beek22-Jun-01 4:24 
GeneralRe: logging method arguments Pin
Tomasz Sowinski22-Jun-01 4:34
Tomasz Sowinski22-Jun-01 4:34 
GeneralRe: logging method arguments Pin
Brian van der Beek23-Jun-01 22:52
Brian van der Beek23-Jun-01 22:52 
GeneralRe: logging method arguments Pin
Tomasz Sowinski25-Jun-01 2:00
Tomasz Sowinski25-Jun-01 2:00 
GeneralRe: logging method arguments Pin
Brian van der Beek25-Jun-01 11:33
Brian van der Beek25-Jun-01 11:33 
GeneralRe: logging method arguments Pin
Tomasz Sowinski26-Jun-01 0:37
Tomasz Sowinski26-Jun-01 0:37 
GeneralProcess viewer Pin
22-Jun-01 4:24
suss22-Jun-01 4:24 
GeneralChanging font in CListbox! Pin
22-Jun-01 4:21
suss22-Jun-01 4:21 
GeneralRe: Changing font in CListbox! Pin
Tomasz Sowinski22-Jun-01 4:30
Tomasz Sowinski22-Jun-01 4:30 
Generalemail link Pin
Monka22-Jun-01 4:12
Monka22-Jun-01 4:12 

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.