Click here to Skip to main content
15,888,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: memory leak!!!!!! Pin
namaskaaram14-Feb-06 19:42
namaskaaram14-Feb-06 19:42 
GeneralRe: memory leak!!!!!! Pin
Ryan Binns14-Feb-06 19:51
Ryan Binns14-Feb-06 19:51 
GeneralRe: memory leak!!!!!! Pin
BadKarma14-Feb-06 20:29
BadKarma14-Feb-06 20:29 
GeneralRe: memory leak!!!!!! Pin
Ryan Binns14-Feb-06 21:27
Ryan Binns14-Feb-06 21:27 
GeneralRe: memory leak!!!!!! Pin
BadKarma14-Feb-06 21:43
BadKarma14-Feb-06 21:43 
GeneralRe: memory leak!!!!!! Pin
Ryan Binns14-Feb-06 21:48
Ryan Binns14-Feb-06 21:48 
GeneralRe: memory leak!!!!!! Pin
namaskaaram14-Feb-06 21:34
namaskaaram14-Feb-06 21:34 
GeneralRe: memory leak!!!!!! Pin
Ryan Binns14-Feb-06 21:44
Ryan Binns14-Feb-06 21:44 
There is usually a memory leak when you delete NULL. Not always, however. if you have a class that allocates memory using new, it's reasonably standard practice to delete it in the destructor. If you have another cleanup routine that deletes the pointer (and then sets it to NULL - always an excellent idea), then the delete in the destructor doesn't need to have a if (!NULL) check around it - it makes no difference whether the pointer is NULL or not.

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: memory leak!!!!!! Pin
Ashutosh_shashi14-Feb-06 21:18
Ashutosh_shashi14-Feb-06 21:18 
GeneralRe: memory leak!!!!!! Pin
ThatsAlok14-Feb-06 23:11
ThatsAlok14-Feb-06 23:11 
QuestionRe: memory leak!!!!!! Pin
David Crow15-Feb-06 4:15
David Crow15-Feb-06 4:15 
QuestionEncryption Pin
Tony Kurishunkal14-Feb-06 17:41
Tony Kurishunkal14-Feb-06 17:41 
AnswerRe: Encryption Pin
namaskaaram14-Feb-06 18:46
namaskaaram14-Feb-06 18:46 
AnswerRe: Encryption Pin
moodsey21114-Feb-06 19:22
moodsey21114-Feb-06 19:22 
QuestionApplication crashed on client side not on my side Pin
zahid_ash14-Feb-06 17:34
zahid_ash14-Feb-06 17:34 
AnswerRe: Application crashed on client side not on my side Pin
Ashutosh_shashi14-Feb-06 19:30
Ashutosh_shashi14-Feb-06 19:30 
AnswerRe: Application crashed on client side not on my side Pin
kakan14-Feb-06 20:40
professionalkakan14-Feb-06 20:40 
QuestionShared data, functions across DLL Pin
arunperi14-Feb-06 17:22
arunperi14-Feb-06 17:22 
AnswerRe: Shared data, functions across DLL Pin
Ryan Binns14-Feb-06 17:39
Ryan Binns14-Feb-06 17:39 
GeneralRe: Shared data, functions across DLL Pin
arunperi14-Feb-06 17:45
arunperi14-Feb-06 17:45 
GeneralRe: Shared data, functions across DLL Pin
Ryan Binns14-Feb-06 21:29
Ryan Binns14-Feb-06 21:29 
AnswerRe: Shared data, functions across DLL Pin
Naveen14-Feb-06 17:44
Naveen14-Feb-06 17:44 
GeneralRe: Shared data, functions across DLL Pin
arunperi14-Feb-06 17:47
arunperi14-Feb-06 17:47 
GeneralRe: Shared data, functions across DLL--Not Working Pin
arunperi14-Feb-06 18:11
arunperi14-Feb-06 18:11 
GeneralRe: Shared data, functions across DLL--Not Working Pin
Naveen14-Feb-06 19:27
Naveen14-Feb-06 19:27 

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.