Delphi 6 Compiler Options (Pentium-safe FDIV)

I received a crash message from a MadExcept user from a user. The exception was an invalid floating point operation.

The odd part is that the callstack is dying at @FSafeDivide.

I did google and found out that this is a check of some pentium chips that didn't do the division correctly. If the test fails, all units will run in software, not hardware. I have the FDIV option for Pentium-Safe enabled in my compiler settings.

Could this cause an error? I also read somewhere that EInvalidOp, which was an exception class, could be a stack overflow or something like that.

There is a dream of a madman here, except for a message if you want to read it.

exception class: EInvalidOp Exception message: Invalid floating point operation.

thread $1014 (TMyBossThread):
00403509 M5b3.exe System                @FSafeDivide
008300c9 M5b3.exe MMyWorkerThread    317 TMyBossThread.Search
0073e87a M5b3.exe MMyManagerThread 186 TMyWorkerThread.Execute
008e8c17 M5b3.exe madExcept             HookedTThreadExecute
0042c150 M5b3.exe Classes               ThreadProc
00405354 M5b3.exe System                ThreadWrapper
008e8af9 M5b3.exe madExcept             CallThreadProcSafe
008e8b63 M5b3.exe madExcept             ThreadExceptFrame
created by main thread ($864) at:
0073e828 M5b3.exe MMyManagerThread 171 TMyManagerThread.Create
+3
source share
3 answers

Firstly, if you really don't have people who are still running on the early Pentium I chips, you should probably disable this compiler option. This is a solution to the problem with several specific processors, and any chip sold since 1995 did not have a problem.

, , , , -, , FSafeDivide - , . TMyBossThread.Search, 317, , . 316, , .

+2

:

  • " , , ". , , , .
  • , , . (D6 10 ).
  • , Windows? , Text-To-Speech, XP, " " Vista .
  • , , , , ?

FPU:
. .Net Set8087CW OpenGL

+1

() , Pentium (tm) -safe ($ U +) Windows 2003 Server DEP:

http://entwickler-forum.de/archive/index.php/t-41207.html

Delphi 2009 - $U- ( Pentium (tm) -safe.

Thus, even if we forget about the hardware component (broken processors), it can still matter depending on the functions of the operating system, such as DEP

+1
source

Source: https://habr.com/ru/post/1764079/


All Articles