Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: AccessViolation Exception in surface generation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: AccessViolation Exception in surface generation


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] Re: AccessViolation Exception in surface generation
  • Date: Thu, 25 Apr 2013 13:59:42 +0200

Hi Mario,

You are right, PointSetDemo.exe seems statically linked to boot and cgal (according to depends.exe). I would be surprised that this makes any difference.

CGAL 4.1 or 4.2 should be fine too.

CGAL does not depend of Windows XP. My guess is that your application works in XP compatibility mode only by chance (although I may be wrong: I do not know exactly what the XP compatibility mode does).

I would recommend you to try next things:

1) Check that your application and the libraries it uses (including CGAL) are compiled with the same Windows runtime. Mixing Windows runtime may lead to very strange bugs.
As far as I remember, the Release target should use the Multithreaded Dynamic Dll runtime (/MD) and the Debug target Debug Multithreaded Dynamic Dll runtime (/MDd).
Usually, Visual Studio complains when you try to link an application and libraries that mix several runtimes.

2) If your application is a command line application, you may activate traces.
To turn on traces in your application, you should add the next line in your application's CMakeList.txt
ADD_DEFINITIONS( "-DDEBUG_TRACE" ) # turn on traces
then recompile it with Visual Studio (debug version).
Then please run again your application (debug version) to reproduce the problem, and post its output in cgal-discuss.

3) I invite you to use a memory debugger (e.g. Valgrind on Unix or AQTime on Windows) to nail down the problem.

Best regards,
Laurent Saboret

mario a écrit :
I've tried the PointSetDemo.Exe.

It seems it does not crash.
On the countrary my application that simply need

boost_thread-vc100-mt-1_47.dll
CGAL-vc100-mt-4.1.dll
libgmp-10.dll
libmpfr-4.dll

sometime crashes unless i put it in xp compatibility mode and in that way it
never crashes.

I notice that Poinsetdemo.exe has cgal and boost lib not dinamycally linked
as i put it in a new pc plus "cgal-demoDLL" package ( that doesn't have
boost_thread-vc100-mt-1_47.dll and CGAL-vc100-mt-4.1.dll) and it works. In
addition i notice on help panel it should be builded on Cgal 4.2 while i use
4.1
Any suggestion?


--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/AccessViolation-Exception-in-surface-generation-tp4657227p4657251.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page