Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] "Windows has triggered a breakpoint" when I run surface reconstruction in a thread
Chronological Thread
- From: Laurent Saboret <>
- To:
- Subject: Re: [cgal-discuss] "Windows has triggered a breakpoint" when I run surface reconstruction in a thread
- Date: Mon, 29 Aug 2011 15:51:12 +0200
Hi Yifei, I guess that you have either 1) a runtime mismatch or 2) a stack overflow or 3) a dangling pointer. 1) You should first check that your application and all libraries linked with it (including CGAL and Qt) have been compiled with the same Windows runtime. It should be /MD in Release mode and /MDd in Debug mode. I recommend you to test first the Release version as CGAL installers >= 3.7 do not come with a /MDd version of TAUCS any more. 2) examples/Surface_reconstruction_point_3/CMakeLists.txt contains code to avoid stack overflows on Windows: if (MSVC) # Use /EHa option to catch stack overflows. # Note: TAUCS needs a stack >= 2MB. CGAL default is 10MB. string(REGEX REPLACE "/EH[asc]*" "/EHa" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") ... endif() 3) Dangling pointers are hard to track. If you are lucky, you may use MSVC debugger, start from a simple code and a simple point set, and increase complexity until the bug occurs. If the bug is more complex, you will need a memory debugger. There are various commercial memory debuggers on Windows. My favorite one is AQTime. Best regards, Laurent Saboret Le 27/08/2011 23:22, Yifei Li a écrit : Hi, |
- [cgal-discuss] "Windows has triggered a breakpoint" when I run surface reconstruction in a thread, Yifei Li, 08/27/2011
- Re: [cgal-discuss] "Windows has triggered a breakpoint" when I run surface reconstruction in a thread, Laurent Saboret, 08/29/2011
Archive powered by MHonArc 2.6.16.