In vs2010 + OpenCV2.3.1 environment, exactly the same code, in a project, the program can run normally, in another program, program at fault as follows:
FaceKeyPointPositioning. Exe of 0 x761fc41f (KernelBase. DLL) in untreated exception: Microsoft c + + exceptions: memory location 0 x008fefe8 STD: : length_error,