I'm nearing completion of my first C program (a personal woohoo), but I'm having a problem with a nasty memory leak. I have threads, pointers, arrays, structures, and functions, so I'm not even sure where to start looking. I did notice if I comment out all the listview updates, the leak gets smaller, but memory usage still climbs after running a few traces.
I'd post the code in a code window, but I don't know where the problem is, and I think 550+ lines is a bit difficult to read in a browser, so I'll just attach the project. I'm sure I'm making a newbie mistake, but I'd appreciate any help.
To see the leak in action, just set the Trace Number to something around 100, and click the Trace button - on my system, it climbs from around 884k to 3,184k.
-Thad
EDIT: New version posted 2007/01/27