Ask Your Question

Revision history [back]

I tried your program and the null pointer exception was resolved just giving memory to the storage in the loop:

storage = cvCreateMemStorage(0);

Hope will help you!