This project has moved. For the latest updates, please go here.

Help me! Assertion failed: count !=0

Jun 27, 2011 at 9:17 AM
#include <vld.h>
#include <stdlib.h>
#include <stdio.h>

void f()
{
   int *p = new int[10];
   printf("p=%08x, ", p);
}

int main()
{
   f();
   return 0;
}

//when i compiled the code above with Visual Leak Detector,the assertion happened!
//Windows7 ,VS2010,vld-2.1
Developer
Jun 28, 2011 at 2:45 PM

BTW: I can see how this is a memory leak, but what assertion are you talking about?

Coordinator
Jul 8, 2011 at 11:40 AM

Fixed in version 2.2b http://vld.codeplex.com/releases/view/68620