This project has moved and is read-only. 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()
   return 0;

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

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

Jul 8, 2011 at 11:40 AM

Fixed in version 2.2b