PowerBuilder · Runtime error

R0058: Object instance does not exist

What does R0058: Object instance does not exist mean in PowerBuilder?

The program referenced an object instance that has already been destroyed, or was never actually created.

R0058: Object instance does not existPowerBuilder Classic · Appeon PowerBuilder

Condition

The program referenced an object instance that has already been destroyed, or was never actually created.

Fix

Check the object's lifecycle for a Destroy that runs before every reference to it has finished, particularly in event-driven code where the order of execution is not always obvious from reading the script top to bottom.

Pending source verification. Not yet checked against official documentation.

Related runtime error