PowerBuilder crashing when opening workspace on startup

Symptom

When trying to start PowerBuilder, it is crashing immediately.   PowerBuilder is trying to reopen the last workspace on startup.

Environment

PowerBuilder

Reproducing the Issue

Try to open a corrupt workspace in PowerBuilder, and PowerBuilder will shut down immediately.

Cause

Corruption of an object within the last workspace: when starting PowerBuilder, it tries to load the last workspace causing the crash.

Solution

To start PowerBuilder without it loading the last workspace, change the ReopenWorkspace=1 property to ReopenWorkspace=0 in the pb.ini under the [PB] section.

To avoid this issue, you can also set this same property in the PowerBuilder IDE.  Go to Tools -> System Options -> Workspaces and uncheck the 'Reopen Workspace on startup'.