Subject: CGAL users discussion list
List archive
- From: "Ophir Setter" <>
- To:
- Subject: Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?
- Date: Thu, 29 May 2008 17:26:44 +0300
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=Q9QI82xLoWeSIhkl/4lNMBVWpwZPY1JkmkwE5ulChEQuBOqB1fzXBWuyf6B6OECY+olxMWz1xxGYvH6fSiEOE4EFsbf8P3eRTmb32+JDnBBCNuvfrSP3X+UZE9SABBG0TX2wZXsmYNGbMeJC96NtvFSepZNlzmISutrek5YPU8E=
Hi,
I've tried to add _SECURE_SCL to one of my projects. The project works in Debug (with _SECURE_SCL=0 and without) and in Release without _SECURE_SCL.
When I try to run the project in Release with _SECURE_SCL I get the following errors:
From the command line I get:
CutAndPackExample.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
From the debugger I get:
"""
A buffer overrun has occurred in CutAndPackExample.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'.
"""
What can I do? Do all the dependency libraries also have to have _SECURE_SCL=0 defined?
Ophir
On Wed, May 28, 2008 at 11:27 PM, Johan Verbert <> wrote:
Hello Fernando,
The speed issue was compared to Cgal 3.3 compiled with the previous version of Visual Studio Express (2007 i think).
And in release mode everything, even a simple rectangle failed.
_SECURE_SCL=0 was defined everywhere but _HAS_ITERATOR_DEBUGGING=0 not
Adding _HAS_ITERATOR_DEBUGGING=0 when compiling CGAL and the demo fixed everything!
I feel a little stupid now :)
thanks alot for the help!
Johan
Fernando Cacciola schreef:
Hi Johan,
Hello All,"Previously" is what compiler, cgal version, etc?
I followed the instructions on
(http://acg.cs.tau.ac.il/cgal-at-tau/installing-cgal-and-related-programs-on-windows)
for using Cgal (3.3.1) with Visual Studio Express 2008 using boost
1.35.00. And it seems to work fine.
However, if i compile and debug for example the straight skeleton demo
program, it seems a lot slower than it was previously.
It takes moreI suppose you are using checked iterators and the secure scl right?
than two minutes to calculate the inner skeleton for the complex5
polygon (Vista, Core2Duo , 2gig ram).
Try defining _SECURE_SCL=0 and _HAS_ITERATOR_DEBUGGING=0, making sure to do the same when building CGAL itself.
If I compile and run*any* skeleton no matter which one, like within a simple rectangle?
in release mode it doesnt even want to calculate any skeleton.
("Straight skeleton construction failed")
HTH
Fernando Cacciola
GeometryFactory
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- Linking error in compiling TAUCS libs, kevin . kai . xu, 05/25/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Laurent Saboret, 05/26/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Kevin Xu, 05/26/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Laurent Saboret, 05/26/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Kevin Xu, 05/27/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Laurent Saboret, 05/27/2008
- [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Johan Verbert, 05/28/2008
- Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Fernando Cacciola, 05/28/2008
- Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Johan Verbert, 05/28/2008
- Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Ophir Setter, 05/29/2008
- Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Fernando Cacciola, 05/29/2008
- Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Ophir Setter, 05/29/2008
- Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Fernando Cacciola, 05/29/2008
- Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Ophir Setter, 05/29/2008
- Re: [cgal-discuss] CGAL 3.3.1 slow with VC++2008 ?, Fernando Cacciola, 05/28/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Kevin Xu, 05/27/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Laurent Saboret, 05/26/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Kevin Xu, 05/26/2008
- Re: [cgal-discuss] Linking error in compiling TAUCS libs, Laurent Saboret, 05/26/2008
Archive powered by MHonArc 2.6.16.