<div dir="ltr">I can compile and run the code OK when running a debug config. When I switch to release it crashes with a Microsoft C++ exception: std::bad_alloc. And I get this is a dialog<div><br></div><div>Unhandled exception at 0x00007FFDA170EA1E (ucrtbase.dll) in mesh_maker.exe: Fatal program exit requested.</div><div><br></div><div>I'm pretty sure that this has nothing to do with VTK but has anyone out there come across this sort of behavior?</div><div><br></div><div>This is the cmake file I used to create the sln file (copied from the VTK examples).</div><div><br></div><div><div>cmake_minimum_required(VERSION 2.8)</div><div> </div><div>PROJECT(MeshMaker)</div><div> </div><div>find_package(VTK REQUIRED)</div><div>include(${VTK_USE_FILE})</div><div> </div><div>add_executable(mesh_maker FileIterator poly_maker mesh_maker)</div><div> </div><div>if(VTK_LIBRARIES)</div><div>  target_link_libraries(mesh_maker ${VTK_LIBRARIES})</div><div>else()</div><div>  target_link_libraries(mesh_maker vtkHybrid vtkWidgets)</div><div>endif()</div><div><br></div><div>The VTK it points to was built in release mode using MSVC.</div><div><br></div><div>Cheers</div><div>Ollie</div><div><div><br></div><div><br></div></div></div></div>