views:

34

answers:

2

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

A: 

You have to get the source and debugging symbols (.pdb file) for glu32.lib. You can get them in two possible ways:
1. From the vendor
2. By compiling glu32.lib yourself

dark_charlie
A: 

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.
SigTerm