Click here to Skip to main content
15,890,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Notification about system shutdown Pin
ThatsAlok9-Nov-04 18:18
ThatsAlok9-Nov-04 18:18 
GeneralRe: Notification about system shutdown Pin
Vancouver9-Nov-04 18:26
Vancouver9-Nov-04 18:26 
GeneralTrapping keystrokes globally Pin
Vancouver9-Nov-04 17:40
Vancouver9-Nov-04 17:40 
GeneralRe: Trapping keystrokes globally Pin
ThatsAlok9-Nov-04 18:11
ThatsAlok9-Nov-04 18:11 
GeneralRe: Trapping keystrokes globally Pin
Vancouver9-Nov-04 18:42
Vancouver9-Nov-04 18:42 
GeneralRe: Trapping keystrokes globally Pin
ThatsAlok9-Nov-04 18:59
ThatsAlok9-Nov-04 18:59 
GeneralWindows Forms Pin
NormBohana9-Nov-04 17:14
NormBohana9-Nov-04 17:14 
GeneralCleaning up memory Pin
mdykstra9-Nov-04 17:00
mdykstra9-Nov-04 17:00 
Hi,
I have implemented a game that adds nodes to a list; in essense it is creating a tree. When I add a node to the tree, I use malloc to create memory for the node and push it onto a stack. I then pop it from the stack and do a check. If the check passes I push it back onto the stack, if it fails, I want to delete the node so I use free() to free the memory that was created for it. What is happening when you look at the Task Manger in Windows (XP), it shows the memory being allocated and freed for the application, but when you look at the field called "Commit Charge" within Task Manager, it shows a constant rise in the amount of virtual memeory being used. This continues to grow until the program ends with a memory allocation error. My question relates to resources/links/recommendations on how to better handle memory within a C++ program. I am using Microsoft VC++, version 6.0. I've looked through the code for memory leaks, but it it appears to do as it should; allocating and releasing memory in the proper order. Since it appears that memory leaks is the cause, I am looking for links or recommendations on how to find these leaks.
Any recommendations or resources would be greatly appreciated.

Thanks in advance.
Martin

GeneralRe: Cleaning up memory Pin
David Crow10-Nov-04 4:17
David Crow10-Nov-04 4:17 
GeneralRe: Cleaning up memory Pin
John R. Shaw10-Nov-04 7:19
John R. Shaw10-Nov-04 7:19 
Questionhow to get finished time for sound Pin
vc-programmer-9-Nov-04 16:52
vc-programmer-9-Nov-04 16:52 
AnswerRe: how to get finished time for sound Pin
David Crow10-Nov-04 4:24
David Crow10-Nov-04 4:24 
QuestionHow to get volume letter of a USB disk through PID&VID? Pin
Amanda Davis9-Nov-04 16:07
Amanda Davis9-Nov-04 16:07 
AnswerRe: How to get volume letter of a USB disk through PID&VID? Pin
Amanda Davis11-Nov-04 16:58
Amanda Davis11-Nov-04 16:58 
GeneralRe: How to get volume letter of a USB disk through PID&VID? Pin
Amanda Davis15-Nov-04 15:04
Amanda Davis15-Nov-04 15:04 
Generalnew to .net Pin
Anonymous9-Nov-04 16:02
Anonymous9-Nov-04 16:02 
GeneralRe: new to .net Pin
Anonymous9-Nov-04 16:19
Anonymous9-Nov-04 16:19 
GeneralRe: new to .net Pin
RChin9-Nov-04 23:31
RChin9-Nov-04 23:31 
QuestionWhat's icon shell32.dll,84 used? Pin
internal9-Nov-04 14:40
internal9-Nov-04 14:40 
QuestionHow do I get Tool window back Pin
Don129-Nov-04 14:06
Don129-Nov-04 14:06 
AnswerRe: How do I get Tool window back Pin
ThatsAlok9-Nov-04 18:14
ThatsAlok9-Nov-04 18:14 
Generalwindiff usage Pin
rmnowick9-Nov-04 12:47
rmnowick9-Nov-04 12:47 
GeneralRe: windiff usage Pin
Andrew Walker9-Nov-04 14:50
Andrew Walker9-Nov-04 14:50 
Generalget files in directory Pin
Fernando A. Gomez F.9-Nov-04 12:38
Fernando A. Gomez F.9-Nov-04 12:38 
GeneralRe: get files in directory Pin
Andrew Walker9-Nov-04 15:11
Andrew Walker9-Nov-04 15:11 

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.