Two more questions: what is the size of your negatives and how much free memory do you have? I personally met with this kind of problem and the solution was that I had to close some of my applications (in spite of my 4 GB total memory).

Comments

Hi Abhishek,
i am trying to create traincasade.exe but it is throwing Debug Assertion Failed!
in msvisualstudio \xString line :1143 expression :invalid null pointer .
and can you tell me which version of opencv are using ?? and what is the size of .exe ???

See I am using opencv-2.4.6.1 in ubuntu 12.04,so,the traincascade.exe you are talking about is opencv_traincascade.exe i created when i installed opencv.Its size is 300.5 kB.Since u r trying to compile traincascade.cpp,make sure u include all the required libraries,even the header files require a lot of libraries to be present in the compilation folder.Other way round you can make use of make file present in the traincascade folder in opencv download directory to compile.Again once you use the make file to compile it will create a opencv_traincascade.exe in the build/bin directory.