Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

thedo

problems with d3dx8bor.dll

This topic is 6038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone else have problems with this dll? If I implib d3dx8.dll and use that everything works fine. If i link to d3dx8bor.lib and use that dll i get program crashes all over. Anyone else had problems? If so did you fix them? If so How? Neil WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

Share this post


Link to post
Share on other sites
Advertisement
I was very kidly e-mailed this reply by Persity Entertainment

quote:

When using the Borland compilers with DX, make sure you turn off FP
exceptions. It seams that MS turns of FP exceptions by default where Borland
does not. Just call this before calling any DX function from the Borland
side:

procedure DisableFPUExceptions;
var
FPUControlWord: WORD;
asm
FSTCW FPUControlWord;
OR FPUControlWord, $4 + $1; { Divide by zero + invalid operation }
FLDCW FPUControlWord;
end;

procedure EnableFPUExceptions;
var
FPUControlWord: WORD;
asm
FSTCW FPUControlWord;
AND FPUControlWord, $FFFF - $4 - $1; { Divide by zero + invalid
operation }
FLDCW FPUControlWord;
end;

of coarse this is Delphi code, but try to disable FP exceptions before using
DX.



I managed to abreviate this to

Set8087CW(0x133f);

Which appears to do the same job.

But it doesnt work.

Any Ideas

Neil


WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!