Gen GUI application fails to load dll "Reason Code 127"
search cancel

Gen GUI application fails to load dll "Reason Code 127"

book

Article ID: 26329

calendar_today

Updated On:

Products

Gen Gen - Run Time Distributed

Issue/Introduction

When launching a Gen GUI C application, receive runtime error:
INTERNAL FATAL ERROR. Failed to Load DLL, Reason Code 127

Environment

Gen GUI C client applications.

Cause

From Microsoft > System Error Codes (0-499) error 127 means:
ERROR_PROC_NOT_FOUND
The specified procedure could not be found.

So the error indicates that a needed runtime DLL file may be missing or cannot be found.
This typically occurs after an application is deployed either manually or using a .msi file.

Resolution

  1. Verify Windows environment variable PATH and Gen environment variables Gen86 and IEFH are correct and without syntax errors.

  2. Verify that the RI Triggers (CASCADE) library has been generated & installed and is located in the same directory as the <loadmodule>.exe or in the PATH, so it can be found.

  3. Install Dependency Walker.
    Start Dependency Walker and open the problem file  <loadmodule>.dll. Verify the runtime DLL's needed by it exist and can be found.

Additional Information

Specific 127 error for Gen client/server application using TCP/IP: "CSU-DLL-ERROR: (Sys-127) Attach to tcpcfn.dll failed" on cooperative flow

Related article for RC=126: Gen GUI app error "Failed to load DLL file, reason code 126"