Sign in Join
FPDoc Onlineexperiment

SafeLoadLibrary function

In unit System

Load a library safely.

Declaration

pascal
function SafeLoadLibrary(const Name: RawByteString): TLibHandle

Description

SafeLoadLibrary calls LoadLibrary but restores the current FPU control word and exception mask to their current value after the library was loaded, thus preventing the loaded library initialization code from modifying their current values.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.