Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] 0xC0000005: Access violation reading location

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] 0xC0000005: Access violation reading location


Chronological Thread 
  • From: "avanindra" <>
  • To: <>
  • Subject: RE: [cgal-discuss] 0xC0000005: Access violation reading location
  • Date: Mon, 16 Feb 2009 07:24:05 +0530
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; b=KEJxggnncHoyEtqmDRcIcHGLxvEPdaE2Iu25qE5MnhCK1r0Qv92nHZ+MLZgISkQK/7 CJxvnpxTlbm60ZGeJ8PSZZZnJBrEG3hNDTlto6zMWGpYQW/7UDIMHnkqSPCIIpLlwOBj ph/Mm30XZx564671/44BOE72M868/hKRWtv/M=

I am putting some more information here:

Here is the call stack:

msvcr80d.dll!strlen(unsigned char * buf=0x0013ea98) Line 81 Asm


msvcp80d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<ch
ar> >::assign(const char * _Ptr=0x00000000) Line 1042 + 0x9 bytes C++


msvcp80d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<ch
ar> >::basic_string<char,std::char_traits<char>,std::allocator<char> >(const
char * _Ptr=0x00000000) Line 644 C++


DirectXDisplay.exe!CGAL::precondition_fail(const char * expr=0x004b8f44,
const char * file=0x004b8f70, int line=1406, const char * msg=0x00000000)
Line 138 + 0x17 bytes C++


DirectXDisplay.exe!CGAL::DT3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<do
uble>
>,CGAL::TDS3<CGAL::TH_vb3<CGAL::T_vb3<CGAL::Filtered_kernel<CGAL::Simple_car
tesian<double> >,CGAL::TDS_vb3<void> >
>,CGAL::T_cb3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
>,CGAL::TDS_cb3<void> > >
>::dual(CGAL::TDS3<CGAL::TH_vb3<CGAL::T_vb3<CGAL::Filtered_kernel<CGAL::Simp
le_cartesian<double> >,CGAL::TDS_vb3<void> >
>,CGAL::T_cb3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
>,CGAL::TDS_cb3<void> > >::Cell_handle c={...}) Line 1406 + 0x33 bytes C++


DirectXDisplay.exe!SurfaceMesher_3::voronoiFilterMesher(char *
file_name=0x004b4bb0) Line 202 + 0x27 bytes C++


DirectXDisplay.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ *
hPreviousInstance=0x00000000, char * lpcmdline=0x00161f51, int nCmdShow=1)
Line 259 C++


DirectXDisplay.exe!__tmainCRTStartup() Line 578 + 0x35 bytes C


DirectXDisplay.exe!WinMainCRTStartup() Line 403 C




For the precondition_fail function, I checked the local value of the
parameters. For the last parameter const char* msg, the value is
0x00000000<Bad Ptr>.



-----Original Message-----
From:


[mailto:]

Sent: Sunday, February 15, 2009 10:46 PM
To:

Subject: [cgal-discuss] 0xC0000005: Access violation reading location

Hi,

I was trying to output the triangles generated through delaunay triangulator
in
DirectX.

When I run the triangulation code as a console application, it runs fine and
but when I call the same code in DirectX c++, I get run time exception,

First-chance exception at 0x004ffb10 (msvcr80d.dll) in DirectXDisplay.exe:
0xC0000005: Access violation reading location 0x00000000.

The strange thing is exception is occuring in the Delaunay triangulator,
while
evaluating the triangulation from list of Points. i.e. inside

Dt(P.begin(),P.end);

in above statement P is list of points.

I am currently using VS2005 and DirectX9 on Windows XP.

Do I need to change any project setting while calling any method of CGAL in
directX code?

Please point out where am I doing the mistake.

Thanks
Avanindra
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page