Click here to Skip to main content
16,013,489 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCToolBar default position and destruction Pin
5-Feb-02 5:46
suss5-Feb-02 5:46 
GeneralAnother String Question Pin
Tom Wright5-Feb-02 4:33
Tom Wright5-Feb-02 4:33 
GeneralRe: Another String Question Pin
Jon Hulatt5-Feb-02 4:52
Jon Hulatt5-Feb-02 4:52 
GeneralRe: Another String Question Pin
Jamie Hale5-Feb-02 6:00
Jamie Hale5-Feb-02 6:00 
GeneralRe: Another String Question Pin
Nemanja Trifunovic5-Feb-02 6:14
Nemanja Trifunovic5-Feb-02 6:14 
GeneralRe: Another String Question Pin
Joaquín M López Muñoz5-Feb-02 6:25
Joaquín M López Muñoz5-Feb-02 6:25 
GeneralRe: Another String Question Pin
Nemanja Trifunovic5-Feb-02 6:39
Nemanja Trifunovic5-Feb-02 6:39 
GeneralRe: Another String Question Pin
Tim Smith5-Feb-02 15:35
Tim Smith5-Feb-02 15:35 
WRONG!!!!

You MUST call delete [] when a buffer was allocated with new [].

Check 5.3.5.1, 5.3.5.2 (which specifically states that using delete on an array is undefined.), and 5.3.4.8.

Also 5.3.5.6 specifically states that the destructor will be called for non-array and array deletes. It is just the case with built-in types such as int, there are no destructors to be called.

It works out of luck. In earlier versions of VC, it would work in debug mode but not release.

Tim Smith
Descartes Systems Sciences, Inc.
GeneralRe: Another String Question Pin
Nemanja Trifunovic6-Feb-02 6:11
Nemanja Trifunovic6-Feb-02 6:11 
GeneralRe: Another String Question Pin
Tim Smith5-Feb-02 15:36
Tim Smith5-Feb-02 15:36 
GeneralRe: Another String Question Pin
Jamie Hale5-Feb-02 14:41
Jamie Hale5-Feb-02 14:41 
GeneralRe: Another String Question Pin
Tim Smith5-Feb-02 15:39
Tim Smith5-Feb-02 15:39 
GeneralRe: Another String Question Pin
Nemanja Trifunovic6-Feb-02 6:16
Nemanja Trifunovic6-Feb-02 6:16 
GeneralRe: Another String Question Pin
Tim Smith5-Feb-02 15:38
Tim Smith5-Feb-02 15:38 
GeneralRe: Another String Question Pin
Tom Wright6-Feb-02 5:48
Tom Wright6-Feb-02 5:48 
Generalnot printing! Pin
5-Feb-02 4:34
suss5-Feb-02 4:34 
GeneralRe: not printing! Pin
Jon Hulatt5-Feb-02 4:48
Jon Hulatt5-Feb-02 4:48 
GeneralUSB Communications Pin
Paresh Solanki5-Feb-02 4:25
Paresh Solanki5-Feb-02 4:25 
GeneralRe: USB Communications Pin
5-Feb-02 6:34
suss5-Feb-02 6:34 
GeneralMSMASK32/MSFLXGRID Pin
5-Feb-02 4:28
suss5-Feb-02 4:28 
QuestionWMI bug or what? Pin
Mario M.5-Feb-02 4:04
Mario M.5-Feb-02 4:04 
GeneralMD5 Pin
Rickard Andersson205-Feb-02 3:19
Rickard Andersson205-Feb-02 3:19 
GeneralRe: MD5 Pin
Joel Lucsy5-Feb-02 7:51
Joel Lucsy5-Feb-02 7:51 
GeneralRe: MD5 Pin
Le centriste5-Feb-02 11:06
Le centriste5-Feb-02 11:06 
GeneralAlways Active Frames Pin
Alan Chambers5-Feb-02 2:49
Alan Chambers5-Feb-02 2:49 

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.