PDA

View Full Version : Urgent!!



link19
07-25-2001, 06:09 PM
Hey,
Trying to run my app on different machines. Sometimes it works, other times when it tries to render i get an unhandled exception...privileged instruction. Its not OS issue...not sure if hardware or software...graphics card...i dont know. Hoping someone has had similar issue before and knows resolution. The problem is definately with respect to rendering cuz it happens when i call my display list.
Help please!!

TheFlyingPengwin
07-25-2001, 06:33 PM
i'm not sure but i think some versions of opengl can't use display lists... Just a guess...

If you aren't doing any other rendering before the display lists then it's the video card i think.

chrisATI
07-25-2001, 08:49 PM
Originally posted by TheFlyingPengwin:
i'm not sure but i think some versions of opengl can't use display lists... Just a guess...

If you aren't doing any other rendering before the display lists then it's the video card i think.

display lists have been in opengl for quite a while (i'm not sure what version they were added in?) so i don't think this is the problem. perhaps you are making an illegal gl call inside of your display list definition? remember that a display list cannot hold just any old gl call... consult the red book for a list of gl functions that should not be included in a display list.

Morglum
07-26-2001, 04:34 AM
Are you using a Borland compiler ? Because I've met such unexpected error messages with BC++ 5.0.

link19
07-26-2001, 05:19 AM
Using VC6. Getting rid of my display lists helped, as i can successfully run consistently. However, still issuesif i add to the code, making it bigger. I think its an issue with the release build. Debug version is consistent.
Never come across this, but i think its also a graphics card issue, as the same machines that could not execute had a maximum point size of 1.

Morglum
07-27-2001, 12:02 AM
oh I've just had another idea : how do you get the number for your display list : do you use glGenLists ? if not, maybe you're attempting to redefine some display list internal to your gl driver.

AndersO
07-27-2001, 03:04 AM
If it only crash when you are rendering your displaylist I would try to debug the code that build the list.

Instead of building the list try render your geometry immediatly using glBegin-glEnd or whatever you are using in the building of the list.

If it crash then too, its just a matter of stepping through the code.. http://www.opengl.org/discussion_boards/ubb/smile.gif

Cheers