Powerbuilder Application Execution — Error R0035 Hot!
Unlike typical coding errors (like Null Object Reference ), R0035 usually implies that PowerBuilder knows what it is trying to do but cannot complete the interaction with an outside component. The error message often includes the name of the function, the line number, and the script where the failure occurred. Common Contexts for R0035
If you are reading this, you have likely already encountered this frustrating error. It can appear out of nowhere, often on a user's machine where the application had previously been functioning correctly, or during development when introducing new integrations.
ole_object = CREATE OLEObject ole_object.ConnectToNewObject("Excel.Application") ole_object.SetAutomationTimeout(ll_interval) // Set the timeout here powerbuilder application execution error r0035
This method ensures PowerBuilder can locate and instantiate the .NET class as a COM object. Additionally, ensure that any NuGet packages or other dependencies that the C# DLL references are also present on the target machine and are .NET Framework-compatible (not .NET Core/.NET 5+ unless specifically configured for COM interop), as missing dependencies can cause the external function call to fail and result in error r0035.
An object (like a DataWindow or a User Object) within a library may be corrupt or failed to compile correctly during the build process. Unlike typical coding errors (like Null Object Reference
Open Command Prompt as Administrator and run: regsvr32 C:\Path\To\Your\Control.ocx . 2. Verify File Existence and Paths
"Unable to load the requested PowerBuilder VM." It can appear out of nowhere, often on
| Cause | Description | |-------|-------------| | | The core pbvm*.dll (e.g., pbvm170.dll , pbvm125.dll ) is not in the system path or application directory. | | Wrong DLL version | The installed runtime files do not match the PowerBuilder version used to compile the app. | | Missing runtime files | Other required files like libjcc.dll , pbdwe*.dll , or pbrtc*.dll are absent. | | PATH environment issue | The system PATH does not include the directory containing PowerBuilder runtime DLLs. | | 64-bit vs 32-bit mismatch | The application is 32-bit, but the runtime is 64-bit (or vice versa). | | Dependency corruption | A required C++ runtime or Windows system DLL is damaged. |
Even if a .NET assembly or C++ DLL is successfully registered via RegAsm or RegSvr32 , the external component itself might have unfulfilled dependencies. If a .NET COM wrapper relies on a specific version of the .NET Framework or a third-party Java runtime that is missing on the client machine, the method call will fail internally and return an R0035 error to PowerBuilder. 4. API Changes and Software Version Upgrades