There is a bug in this application that causes the app to crash. I can replicate the bug and so I loaded up gdb (first time user) through Eclipse and replicated it during a debug session.
Here is the gdb output:
1 2 3
Thread 1 received signal SIGSEGV, Segmentation fault.
0x000f3ba8 in MapView::CMVTesselatorGL::~CMVTesselatorGL (this=0x4332ba60, __in_chrg=<optimized out>) at ../../../src1/MapView/CMVTesselatorGL_GLES2_0.cpp:159
159 }
Probably more code must be shown to know the root cause of this segfault, but segfaults are usually caused by your program trying to mess with memory that doesn't belong to it (like trying to call delete on a junk pointer).
the method seems like it should force it to.
Just a guess, but your program might be crashing before reaching the m_glTess = NULL; call.
It looks like it's crashing during the gluDeleteTess call.
Ah I see now, thank you! I thought that might be the case as well because if it was in fact reaching the m_glTess=NULL statement then by the time I see it it should have been NULL. However, since it was reporting the error at line 159 instead of 158 then I thought the error might be occurring at clearData(). I am trying to set debug points but they do not seem to be working. I will look into the make file to see if the debugging is making it into the build.
Might be of interest: https://stackoverflow.com/a/24914359/8690169 (if you're using g++)
Make sure you are deleting old .o (object) files if you're just now turning on "generate debug symbols".
error at line 159 instead of 158 then I thought the error might be occurring at clearData()
Could be. I have no idea, since I cannot see your code :P
Nobody likes to see 0x1 in a pointer.
It isn't NULL (which obviously means it skips over the guard), and it's nowhere near being a valid pointer.
Two possible things to look for.
1. Make sure m_glTess is initialised to NULL in all constructors, unless that constructor actually initialises it to something proper to start with.
2. This is harder. It means something else overwrote your pointer with garbage.