[yunqa.de] FPU exceptions, Vista, and DISQLite3

  • From: "Michael J. Leaver" <MJLeaver@xxxxxxxxxxxxxxxxx>
  • To: <yunqa@xxxxxxxxxxxxx>
  • Date: Thu, 17 Jan 2008 15:42:22 +0800

Hi, I saw on a CodeGear newsgroup that calling Set8087CW($133F) would fail
on Vista unless the process was run with elevated privileges. The suggestion
was to use the following code instead:

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

Just to be sure, is there a requirement/reason to disable FPU exceptions
when using DISQLite3?

Thanks,
Michael J. Leaver
2BrightSparks Pte Ltd
http://www.2BrightSparks.com/
 

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: