Click here to Skip to main content
16,010,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Threads Pin
Bob Stanneveld12-Sep-05 8:44
Bob Stanneveld12-Sep-05 8:44 
GeneralRe: Threads Pin
Eytukan12-Sep-05 22:20
Eytukan12-Sep-05 22:20 
GeneralRe: Threads Pin
Bob Stanneveld13-Sep-05 1:25
Bob Stanneveld13-Sep-05 1:25 
GeneralRe: Threads Pin
David Crow12-Sep-05 8:55
David Crow12-Sep-05 8:55 
GeneralRe: Threads Pin
Eytukan12-Sep-05 22:27
Eytukan12-Sep-05 22:27 
Questiondelete always goes with set NULL? Pin
valerie9912-Sep-05 3:49
valerie9912-Sep-05 3:49 
AnswerRe: delete always goes with set NULL? Pin
toxcct12-Sep-05 4:00
toxcct12-Sep-05 4:00 
AnswerRe: delete always goes with set NULL? Pin
David Crow12-Sep-05 4:28
David Crow12-Sep-05 4:28 
valerie99 wrote:
Is it necessary to set the pointer to NULL after delete everytime in C++?

It's not required, but it is recommended.

valerie99 wrote:
It would cause memory leak by just delete and NOT set to NULL, right?

No, not at all. The memory is freed within the delete operator. Setting the pointer to NULL afterwards is just a precautionary measure.


"One must learn from the bite of the fire to leave it alone." - Native American Proverb


AnswerRe: delete always goes with set NULL? Pin
Nemanja Trifunovic12-Sep-05 4:28
Nemanja Trifunovic12-Sep-05 4:28 
AnswerRe: delete always goes with set NULL? Pin
S. Senthil Kumar12-Sep-05 4:42
S. Senthil Kumar12-Sep-05 4:42 
QuestionCOleDateTime question Pin
eli1502197912-Sep-05 3:47
eli1502197912-Sep-05 3:47 
AnswerRe: COleDateTime question Pin
David Crow12-Sep-05 4:28
David Crow12-Sep-05 4:28 
GeneralRe: COleDateTime question Pin
eli1502197912-Sep-05 4:34
eli1502197912-Sep-05 4:34 
GeneralRe: COleDateTime question Pin
David Crow12-Sep-05 4:45
David Crow12-Sep-05 4:45 
GeneralRe: COleDateTime question Pin
eli1502197912-Sep-05 20:34
eli1502197912-Sep-05 20:34 
GeneralRe: COleDateTime question Pin
David Crow13-Sep-05 2:08
David Crow13-Sep-05 2:08 
QuestionThread in VC++ ! Pin
lucdt12-Sep-05 3:08
lucdt12-Sep-05 3:08 
AnswerRe: Thread in VC++ ! Pin
Niklas L12-Sep-05 3:18
Niklas L12-Sep-05 3:18 
AnswerRe: Thread in VC++ ! Pin
Cedric Moonen12-Sep-05 3:21
Cedric Moonen12-Sep-05 3:21 
GeneralRe: Thread in VC++ ! Pin
David Crow12-Sep-05 3:24
David Crow12-Sep-05 3:24 
GeneralRe: Thread in VC++ ! Pin
Cedric Moonen12-Sep-05 3:26
Cedric Moonen12-Sep-05 3:26 
AnswerRe: Thread in VC++ ! Pin
georgwaechter12-Sep-05 3:22
georgwaechter12-Sep-05 3:22 
QuestionHelp me!!!!! Detecting change in data streams Pin
bulgaa12-Sep-05 3:04
bulgaa12-Sep-05 3:04 
AnswerRe: Help me!!!!! Detecting change in data streams Pin
toxcct12-Sep-05 3:18
toxcct12-Sep-05 3:18 
GeneralRe: Help me!!!!! Detecting change in data streams Pin
bulgaa12-Sep-05 3:46
bulgaa12-Sep-05 3:46 

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.