-
Shashank S
- PowerBuilder
- Sunday, 22 February 2026 08:47 AM UTC
Hi,
We are currently migrating an application from Sybase PowerBuilder 12.5.2 (WinForm target) to Appeon PowerBuilder 2022 R3 (Classic target).
The migration is complete, and in the development environment:
- The project runs successfully.
- The generated XML file correctly points to the installed Appeon runtime.
- The EXE launches and works as expected.
- Calls to the external .NET DLL return the correct values.
- We are using the .NET DLL Importer in Appeon to generate the PowerBuilder function wrappers for the .NET DLL.
Issue:
When we deploy the packaged EXE to a different environment (target machine), the application launches but crashes at a specific point.
Using appname.exe /pbdebug, we observed that:
- Execution reaches a .NET DLL function.
- The function appears to loop or fails to return the expected value.
- The same .NET function works correctly in the development environment.
- The failure only occurs when running the packaged EXE in the target environment.
What we have verified in the target machine:
- .NET Framework 4.8 is installed.
- Appeon runtime installed via MSI from the runtime packager.
- XML file correctly points to the installed runtime path.
- All required DLLs (including the .NET DLL used by the project) are present in the same folder as the EXE.
- Files are unblocked.
- The .NET DLLs are built targeting x86 architecture and .NET Framework 4.8.
- Application launches, but fails when attempting to retrieve a value from the .NET DLL.
At this point, it appears environment-specific and related to the .NET DLL interaction.
Is there anything else we should verify on the target machine that could cause a .NET DLL call to behave differently outside the development environment?
Any guidance would be greatly appreciated.
Thank you.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.