FunctionNotFoundException

A function declared using the Declare statement's "Soft" keyword could not be loaded.

# Notes

A FunctionNotFoundException is thrown when a Soft Declare statement such as this:

Soft Declare Function getpid Lib "libc" () as Integer

fails to find the specified function or library and it cannot be loaded. If a "hard" Declare fails to load the function, the application will not run at all.

To determine whether the function can be loaded without actually using the Soft Declare, use the System object's IsFunctionAvailable method. It returns a Boolean indicating whether the function can be loaded on the user's machine.

# See Also

Declare statement, RuntimeException class, Exception, Try blocks; System object.