12.4.19 Errors and warnings
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • The Foreign Include File
          • Errors and warnings
            • PL_warning()
            • PL_fatal_error()
            • PL_system_error()
            • PL_api_error()
            • PL_print_message()
    • Packages
Availability:C-language interface function
int PL_fatal_error(format, a1, ...)
As PL_warning(), but using [FATAL ERROR: at <time> ...] and terminates the process after cleanup using abort(). If the process is a Windows GUI application it uses a message box. This function should be used if an unrepairable error is detected. For example, Prolog uses it to signal it cannot find the compiled Prolog startup or memory allocation fails in a place from where we cannot gracefully generate an exception.235Currently most memory allocation except for most of the big allocations such as for the Prolog stacks.