Search code examples
c++cdebuggingopenglglu

A way of debugging GLU with Visual Studio?


I'm using GLUTess to tesselate polygons. Sometimes it crashes with a null pointer issue and I have no way of knowing why since I just link to glu32.lib . Is there a way to see the source and get the exact line it crashes on?

Thanks


Solution

  • Is there a way to see the source and get the exact line it crashes on?

    1. You can build program on linux. If issue persists, AND if corresponding *.so contains debugging info (and if you have source code in your distribution), then you'll be able to find line number. Do not expect source of glu to be easy to understand, though.
    2. Or you could grab mesa3d source code and build it with debug info, then use mesa3d's glu32.dll (drop into application's directory). If issue persists, you may be able to catch it. Keep in mind that mesa3d is not certified, so it isn't guaranteed to be totally conforming to OpenGL standard.