Subject: CGAL users discussion list
List archive
- From: "Anatoli Barski" <>
- To:
- Subject: Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible
- Date: Mon, 14 Apr 2008 20:13:44 +0200
I'm sorry, I made a mistake checking _HAS_ITERATOR_DEBUGGING and _SECURE_SCL
values:
they are NOT 1 in CGAL as well as in my application.
> Thank you for a fast answer Andreas,
>
> I've checked the macros with
>
> #if _HAS_ITERATOR_DEBUGGING == 1
> #error defined!!!
> #endif
>
> for CGAL (placing that snippet on top of kernel.cpp)
>
> and also for example file transformation.cpp
>
> result:
>
> both _HAS_ITERATOR_DEBUGGING and _SECURE_SCL are defined in cgal.lib
>
> and none of them is defined in transformation.vcproj
>
> if I try defining them on top of transformation.cpp, I get the warning
>
> 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\yvals.h(101) :
> warning CRT1005: Iterator debugging not supported in retail builds.
> 1> Setting 1=0
>
> the application breakes like before at _debugger_hook_dummy = 0;
> in dbghook.c which is provided for you below.
>
> I'm also wondering why _HAS_ITERATOR_DEBUGGING 1 is defined in cgal.lib,
> because I could not find where _DEBUG was +defined.
>
> #if !defined (_HAS_ITERATOR_DEBUGGING)
> #if defined (_DEBUG)
> #define _HAS_ITERATOR_DEBUGGING 1 /* for range checks,
> etc. */
> #else
> #define _HAS_ITERATOR_DEBUGGING 0
> #endif /* defined (_DEBUG) */
> #else
>
>
>
>
> /***
> *dbghook.c - Debug CRT Hook Functions
> *
> * Copyright (c) Microsoft Corporation. All rights reserved.
> *
> *Purpose:
> * Allow users to override default alloc hook at link time.
> *
> *******************************************************************************/
>
> #include <dbgint.h>
>
> #ifdef _DEBUG
>
> #include <internal.h>
> #include <limits.h>
> #include <mtdll.h>
> #include <malloc.h>
> #include <stdlib.h>
>
> _CRT_ALLOC_HOOK _pfnAllocHook = _CrtDefaultAllocHook;
>
> /***
> *int _CrtDefaultAllocHook() - allow allocation
> *
> *Purpose:
> * allow allocation
> *
> *Entry:
> * all parameters ignored
> *
> *Exit:
> * returns TRUE
> *
> *Exceptions:
> *
> *******************************************************************************/
> int __cdecl _CrtDefaultAllocHook(
> int nAllocType,
> void * pvData,
> size_t nSize,
> int nBlockUse,
> long lRequest,
> const unsigned char * szFileName,
> int nLine
> )
> {
> return 1; /* allow all allocs/reallocs/frees */
> }
>
> #endif /* _DEBUG */
>
> int _debugger_hook_dummy;
>
> #ifdef _M_IA64
> #undef _CRT_DEBUGGER_HOOK
> #define _CRT_DEBUGGER_HOOK __crt_debugger_hook
> #endif /* _M_IA64 */
>
> __declspec(noinline)
> void __cdecl _CRT_DEBUGGER_HOOK(int _Reserved)
> {
> /* assign 0 to _debugger_hook_dummy so that the function is not folded
> in retail */
> (_Reserved);
> _debugger_hook_dummy = 0;
> }
>
>
>
>
> -------- Original-Nachricht --------
> > Datum: Mon, 14 Apr 2008 17:25:07 +0200
> > Von: Andreas Fabri
> > <>
> > An:
> >
> > Betreff: Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible
>
> > Anatoli Barski wrote:
> > > Probably a better screenshot of the same callstack attached
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > >
> >
> >
> > Can you check whether _HAS_ITERATOR_DEBUGING and _SECURE_SCL are
> defined
> > consistently in cgal.lib and your application.
> >
> > andreas
> > --
> > You are currently subscribed to cgal-discuss.
> > To unsubscribe or access the archives, go to
> > https://lists-sop.inria.fr/wws/info/cgal-discuss
>
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
- Nef_Polyhedron & list iterators incompatible, anatolibarski, 04/12/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Peter Hachenberger, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Anatoli Barski, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Anatoli Barski, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Andreas Fabri, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Anatoli Barski, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Anatoli Barski, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Anatoli Barski, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Andreas Fabri, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Anatoli Barski, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Anatoli Barski, 04/14/2008
- Re: [cgal-discuss] Nef_Polyhedron & list iterators incompatible, Peter Hachenberger, 04/14/2008
Archive powered by MHonArc 2.6.16.