When using a PCL 1.4.0 in the release mode building under VS2010, we might sometime get the error "Debug assertion Failed Ex Pression vector iterators incompatible "as following shows:
The error happens because you linked debug mode DLLs and building with release mode.
The solve this problem is by doing following:
Go to Linker, Input-Additional Dependencies:
Libboost_system-vc100-mt-1_47.lib
Libboost_filesystem-vc100-mt-1_47.lib
Libboost_thread-vc100-mt-1_47.lib
Libboost_date_time-vc100-mt-1_47.lib
Libboost_iostreams-vc100-mt-1_47.lib
Pcl_common.lib
Pcl_octree.lib
OpenNI.lib
VtkCommon.lib
VtkRendering.lib
VtkHybrid.lib
Pcl_io.lib
Pcl_sample_consensus.lib
Flann_cpp_s.lib
Pcl_kdtree.lib
Pcl_search.lib
Pcl_filters.lib
Pcl_segmentation.lib
Pcl_range_image.lib
Pcl_visualization.lib
Pcl_features.lib
Qhullstatic.lib
Pcl_surface.lib
Pcl_registration.lib
Pcl_keypoints.lib
Pcl_apps.lib
VtkGraphics.lib
Vtkverdict.lib
VtkImaging.lib
VtkIO.lib
VtkFiltering.lib
VtkDICOMParser.lib
Vtknetcdf_cxx.lib
Vtkmetaio.lib
Vtksys.lib
Ws2_32.lib
Comctl32.lib
Wsock32.lib
Vtksqlite.lib
Vtkpng.lib
Vtktiff.lib
Vtkzlib.lib
Vtkjpeg.lib
Vtkexpat.lib
Vtkftgl.lib
Vtkfreetype.lib
Opengl32.lib
VtkexoIIc.lib
VtkNetCDF.lib
Vfw32.lib
Solve Error Debug assertion Failed Expression vector iterators incompatible Using PCL in Release Mode of VS2010