PowerBuilder · Runtime error

R0021: Bad runtime function reference

What does R0021: Bad runtime function reference mean in PowerBuilder?

A compiled reference to a function or object no longer matches what is actually in the library, most often because the object changed after the calling code was compiled but was never regenerated.

R0021: Bad runtime function referencePowerBuilder Classic · Appeon PowerBuilder

Condition

A compiled reference to a function or object no longer matches what is actually in the library, most often because the object changed after the calling code was compiled but was never regenerated.

Fix

Full regenerate (not incremental build) the application after any structural change to an object, since incremental builds can leave stale references behind that only surface at runtime.

Pending source verification. Not yet checked against official documentation.

Related runtime error