mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Bug [0001162] Unhandled exception: EInvalidOp: Invalid floating point operation
This commit is contained in:
parent
1a5640084d
commit
5660fe71ce
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ uses
|
|||
SysUtils,
|
||||
Forms,
|
||||
LCLVersion,
|
||||
Math,
|
||||
{$IF DEFINED(NIGHTLY_BUILD)}
|
||||
un_lineinfo,
|
||||
{$ENDIF}
|
||||
|
|
@ -72,6 +73,9 @@ begin
|
|||
// Initialize random number generator
|
||||
Randomize;
|
||||
|
||||
// Disable invalid floating point operation exception
|
||||
SetExceptionMask(GetExceptionMask + [exInvalidOp]);
|
||||
|
||||
{$IF DEFINED(NIGHTLY_BUILD)}
|
||||
InitLineInfo;
|
||||
AddLineInfoPath(ExtractFileDir(ParamStr(0)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue