I try to use the Vision Development with a Visual C++ 2005 project, but after I included the header, <nivision.h>,<nimachinevision.h>, an Assertion

in "dbgheap.c", line 1414, Expression:_CrtIsValidHeapPointer(pUserData). My project is just an empty windows form project, i only added 2 lines:
#include <nivision.h>, #include <nimachinevision.h>. The project can run perfectly without these 2 line. I am using a native C++ library with managed C++, so my project is compiled with /clr option. I am not using the COM or .Net component is because my last project that used COM and .Net with C# is fail because the processing time is just too long (it takes more then 100ms just to copy all the points from a FindStraightEdge result to another storage!And the processed area are less then 100x100!)
. The reason for such poor performance, IMHO is because too much boxing/unboxing need to be done, i think the .Net component should not as a wrapper from ActiveX component, instead it should be a functional dll from the C component.
Please Help! super duber urgent