Powerbuilder Application Execution Error R0035 May 2026
PowerBuilder Application Execution Error R0035 typically indicates a failure when calling a function from an external object, such as an OLE, COM, or ActiveX control . This runtime error occurs when the application successfully references an object but fails to execute a specific method or property call on it . Common Causes
- Null Handling: Trying to put a null value into a non-nullable visual control.
- DB Handle: Executing a query on a transaction object that has not connected or has disconnected unexpectedly.
- Fix: Check
SQLCA.SQLCodeandSQLCA.DBHandle()validity if the error occurs during data retrieval.
2. Check the application’s resource file reference
- In PowerBuilder IDE, open the project and ensure the Resource File field points to the correct
.pbrfile. - Rebuild the executable after verifying.
3. Debugging Technique: The "Try-Catch" Block
Since R0035 is a runtime error that crashes the application, you should wrap your external function calls in a TRY-CATCH block to handle the error gracefully and get more info. powerbuilder application execution error r0035
- Example: You trigger an event on a window from a timer or another thread, but the user closes the window before the event executes.
- Fix: Check if the object is valid before accessing it.
// Incorrect (Causes R0035 if w_my_window is closing) w_my_window.st_status.Text = "Done"Message: "Error calling external object function [function_name]" Null Handling: Trying to put a null value
PowerBuilder application execution error a runtime error that specifically occurs when the application fails to call a function on an external object In PowerBuilder IDE