Application containing PFC crashes after being upgraded from Sybase PowerBuilder to PowerBuilder 2017 R3 or later

Symptom

After you upgrade an application that contains PFC from an old Sybase PowerBuilder version to PowerBuilder 2017 R3 or later, the application crashes randomly at running. The error log is as follows:

Faulting application name: fundgui.exe, version: 1.0.0.1, time stamp: 0x6171a096

Faulting module name: PBSHR.dll, version: 21.0.0.1311, time stamp: 0x6171a09a

Exception code: 0xc000041d

Fault offset: 0x000000000018eed6

Faulting process id: 0x2f90

Environment 

PowerBuilder 2017 R3 or Later

Cause

This is because the PFC version mismatches the PowerBuilder version.

Solution

Replace the current PFC version with a matching version to solve the problem. You can download PFC from the following address:

https://github.com/OpenSourcePFCLibraries