|
From: James W. W. <os...@jw...> - 2005-08-26 16:13:49
|
On Aug 26, 2005, at 6:53 AM, Jose' Cruanyes wrote: > Hi, I'm having problems with the Trimesh optimizer > > in a Carbon release build, compiled with CW 8.3, the exception are > not catched, inside the lib, jumping out to the program that > doesn't expect them and exits > in the debug version this doesn't happens, nor in windows compiled > with VC++ 6.0 > > in the meantime, I've added a test in the code to avoid the > exception to occur in my case (no edges attributes) I don't know why an exception would not be caught, since E3TriMesh_OptimizeData has a catch (...) block. However I do see why there was no exception in the debug build. E3Memory_AllocateClear is asked to allocate a block of size 0, but due to the debugging header and trailer, the call to calloc actually allocates a nonzero sized block. Whereas in the release build, E3Memory_AllocateClear will return NULL. I agree with the change you made to TriMeshOptimizer::BuildEdgeAttributes. |