Click here to Skip to main content
15,905,614 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Leak detection Pin
toxcct31-Oct-05 5:51
toxcct31-Oct-05 5:51 
GeneralRe: Memory Leak detection Pin
Shay Harel31-Oct-05 5:56
Shay Harel31-Oct-05 5:56 
GeneralRe: Memory Leak detection Pin
Ravi Bhavnani31-Oct-05 8:59
professionalRavi Bhavnani31-Oct-05 8:59 
AnswerRe: Memory Leak detection Pin
Blake Miller31-Oct-05 6:00
Blake Miller31-Oct-05 6:00 
GeneralRe: Memory Leak detection Pin
Shay Harel31-Oct-05 6:07
Shay Harel31-Oct-05 6:07 
AnswerRe: Memory Leak detection Pin
vgrigor131-Oct-05 6:41
vgrigor131-Oct-05 6:41 
AnswerRe: Memory Leak detection Pin
LighthouseJ31-Oct-05 9:26
LighthouseJ31-Oct-05 9:26 
GeneralRe: Memory Leak detection Pin
James R. Twine1-Nov-05 4:08
James R. Twine1-Nov-05 4:08 
   FWIW, I do not think that kind of error causes a memory leak directly (only indirectly).  Missing the [] operator causes only the first object in the array to have its destructor called, but the memory block itself is still freed.

   For example, if you missed the brackets on an array of simple types, there should be no memory leaks.  However, if the array was an array of complex objects that themselves allocate memory, then that might indirectly cause leaks because the destructors will not be called on objects 2-n in the array.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
AnswerRe: Memory Leak detection Pin
James R. Twine1-Nov-05 4:11
James R. Twine1-Nov-05 4:11 
GeneralRe: Memory Leak detection Pin
Shay Harel1-Nov-05 4:17
Shay Harel1-Nov-05 4:17 
Question.lib Files Pin
Andre Trollip31-Oct-05 0:05
Andre Trollip31-Oct-05 0:05 
AnswerRe: .lib Files Pin
Bob Stanneveld31-Oct-05 2:41
Bob Stanneveld31-Oct-05 2:41 
GeneralRe: .lib Files Pin
Andre Trollip31-Oct-05 2:49
Andre Trollip31-Oct-05 2:49 
GeneralRe: .lib Files Pin
toxcct31-Oct-05 2:59
toxcct31-Oct-05 2:59 
GeneralRe: .lib Files Pin
Bob Stanneveld31-Oct-05 6:24
Bob Stanneveld31-Oct-05 6:24 
QuestionWhy Visual Studio 6 C++ begins slowly editing for multy-project solution? Pin
vgrigor130-Oct-05 23:26
vgrigor130-Oct-05 23:26 
AnswerRe: Why Visual Studio 6 C++ begins slowly editing for multy-project solution? Pin
Prakash Nadar31-Oct-05 4:28
Prakash Nadar31-Oct-05 4:28 
GeneralRe: Why Visual Studio 6 C++ begins slowly editing for multy-project solution? Pin
vgrigor131-Oct-05 6:39
vgrigor131-Oct-05 6:39 
GeneralRe: Why Visual Studio 6 C++ begins slowly editing for multy-project solution? Pin
Prakash Nadar31-Oct-05 18:59
Prakash Nadar31-Oct-05 18:59 
GeneralRe: Why Visual Studio 6 C++ begins slowly editing for multy-project solution? Pin
vgrigor131-Oct-05 19:16
vgrigor131-Oct-05 19:16 
AnswerRe: Why Visual Studio 6 C++ begins slowly editing for multy-project solution? Pin
Shay Harel31-Oct-05 4:37
Shay Harel31-Oct-05 4:37 
AnswerRe: Why Visual Studio 6 C++ begins slowly editing for multy-project solution? Pin
krmed1-Nov-05 2:40
krmed1-Nov-05 2:40 
GeneralRe: Why Visual Studio 6 C++ begins slowly editing for multy-project solution? Pin
vgrigor12-Nov-05 4:17
vgrigor12-Nov-05 4:17 
QuestionSerialize content of RichEditCtrl Pin
AnTri30-Oct-05 22:07
AnTri30-Oct-05 22:07 
AnswerRe: Serialize content of RichEditCtrl Pin
Neelesh K J Jain31-Oct-05 1:50
Neelesh K J Jain31-Oct-05 1:50 

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.