Advertisement

opengl + borland + FREEZE

Started by October 10, 2001 04:38 AM
4 comments, last by Junkie 23 years, 4 months ago
Im trying opengl for about a month now. Made a simpel application that a bitmap and creates a simpel terrain from polygons. (but what eva i made the same error so it doesnt really matter.. all using polygons though) It written in Borland C++ and i tried it using a TForm component or the GLUT library and still had the same error.. When an object is near the viewing point or something when the application startsup it freezes the computer. When i translate those polygons in the the depth it works fine. Then i can zoom in en fly over it so to speak. But i cant start above the terrain. Its being developed on a Compaq Armada E500 (with ATI Rage Mobile (8mb)) .. maybe its the OpenGL API of the ATI.. i dont know. does anyone recognize this problem or can anyone help me.. Greetz Junkie =] Edited by - Junkie on October 10, 2001 5:50:29 AM
____________________________________________________________If God put me on this earth to do several things b4 i die,that right now im so far behind ill never die.____________________________________________________________
Hi,

I had a similar problem with Borland C Builder (is that you are using too, aren''t you ?). Sometimes I got a divison by zero, sometimes my program crashed, "killing" Windows as well... since then, I use MS Visual C++ - and there are no errors know, and my program runs faster too. I think it''s worth changing to VC6.

Gonosz
Advertisement
THANKKSSSS.. the only problem is .. I dislike (id rather say hate but ill be nice) MICROSOFT.. and ive been using borland since borland turbo C 3..

oh well .. ya think it has something to do with the GL header files in Borland?? ..

isnt it true that MVC5 or 6 isnt ANSI C compatible .. or am i wrong.. tried that once and removed it soon after..

Oh well, Ill try. Thanks for the advice =] .. i know what ill be doing tonite =]

Greetz
Junkie =]


____________________________________________________________
If God put me on this earth to do several things b4 i die,
that right now im so far behind ill never die.
____________________________________________________________
____________________________________________________________If God put me on this earth to do several things b4 i die,that right now im so far behind ill never die.____________________________________________________________
Try the C++ builder downloads from the Nehe tutorials and see if you get this problem.

I use C+++ Builder and it has always worked fine. The lessons usually come with a glaux.lib file that replaces the standard one as the one that comes with c++ builder is missing some things.

I use c++ builder 4 and it does everything so I would suggest you try the downloads eg http://nehe.gamedev.net/tutorials/lesson08.asp - borland c++ to see if you can compile ok and if not then look into other options before $pending on microsoft.
The default behaviour of Borland is not not to ignore floating point exceptions like Microsoft does. It is not obvious to me why ignoring error messages should be considered the only right solution.
Anyway, the libraries is being built with this assumption so it is probably best to make your Borland compiler do the same as MSVC. Add this:
#ifdef __BORLANDC__
#include
_control87(MCW_EM,MCW_EM);
#endif

I tried Lesson 8
When changing the z variable to 1.0 and it crashed fine.. Not to critisize Nehe. =] It was like i said .. when its visible in the depth its fine. but when its near 0 or i guess after this test the starting point of the viewing area.. think its correct that it has something to do with the division by zero error..

But umzz .. I think i have VC5 somewhere .. maybe 6 too .. ill install that too .. but i dont feel like resting till i (or someone else) found a solution for borland.. I hafta try that or obelix though i have know clue as of where to add it. But i screw up a crashing application much can i ..

Greetz
=]


____________________________________________________________
If God put me on this earth to do several things b4 i die,
that right now im so far behind ill never die.
____________________________________________________________
____________________________________________________________If God put me on this earth to do several things b4 i die,that right now im so far behind ill never die.____________________________________________________________

This topic is closed to new replies.

Advertisement