Wrap your main application with a loader EXE that:
Did this error happen right after a or an upgrade ?
Developers frequently hit error R0035 when processing document templates via OLE automation. If a script references a specific bookmark or cell layout range that does not exist within the loaded document structure, the execution engine drops connection.
The most common cause is that the required .ocx , .dll , or .vbx file is missing from the target machine or was never registered in the Windows Registry. This is frequent when deploying an application to client machines for the first time. 2. Architecture and Bitness Mismatches (32-bit vs. 64-bit)
A value of 0 or a negative number resets to the default of 5 minutes.
:: For standard 32-bit controls on a 64-bit OS cd C:\Windows\SysWOW64 regsvr32.exe C:\PathToYourComponent\controlname.ocx :: For standard 64-bit controls cd C:\Windows\System32 regsvr32.exe C:\PathToYourComponent\controlname.dll Use code with caution.
PowerBuilder Application Execution Error (R0035) Error calling external object function [FunctionName] at line [LineNumber] in [Event/Function] of object [ObjectName]. Use code with caution. Step 2: Manually Re-Register Target Controls
Sometimes, the error is a cascade failure. The PBVM cannot load a PBD because it itself depends on a runtime DLL ( pbdwe105.dll , pbtra105.dll ) that is missing. The error message may generalize to R0035.