will_barley
12 years agoNew Contributor
Allocation Profiler not finding/displaying memory leak (i.e., live count)??
I have created a sample Win32 Console application using Visual Sudio 2008 that leaks memory (see below). When I run AQTimes Allocation Profiler against this program it does not report anything within the "Report" tab when I select "Classes Data" or "Objects" form the "Explorer". Any idea why I do not get any results when I analyze this program using AQTime Allocation Profiler?
class Test
{
public:
void AllocationTest(int Count)
{
int i;
int **array = new int*[Count];
for(i = 0; i < Count; i++)
array = new int[Count];
for(i = 0; i < Count; i++)
for(int j = 0; j < Count; j++)
array
delete array;
}
};
void main()
{
Test* t = new Test();
t->AllocationTest(10);
//AllocationTest(15);
}