cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

vmelkon
Journeyman III

VB6 and division by zero

Hi,

I have a old project coded with VB6, using only GL 1.1.

The program has worked on many systems (GPUs, drivers, Win XP, Win Vista, Win 7).

glGetError() doesn't detect any errors.

The problem is that with Win 7, 32 bit, AMD HD 5450, Catalyst 13.1 (the current driver) and also 13.0, DIVISION BY 0 error gets raised on benign functions such as glScalef, glScissor, glCallList.

The same problem has been detected on a HD 6xxx, unknown OS, unknown driver version, by some user of the program.

On the Win 7, 32 bit, AMD HD 5450, GL says

Renderer = ATI Radeon HD 5450

Vendor = ATI Technologies Inc

Version = 4.2

What do you recommend?

Is the AMD driver enabling some FPU register?

Message was edited by: Vrej Melkonian
Also, the driver that comes with the CD for the HD 5450 works just fine. WIn 7, 32 bit.

0 Likes
1 Reply
vmelkon
Journeyman III

Problem solved.

In VB6, go to project properties, click on compile tab.

Press the Advanced Optimizations button.

Click on Remove floating point exceptions check.

0 Likes