Update: Bug is fixed with PB 2022 R2. pbx 64bit works fine again.
Hi,
We have been using Bruce Armstrong's version of the PBNI SMTP module for a number of years and have just started migrating from PB 2021 to PB 2022 (1900).
The 32 bit version seems to be fine, but during our tests we have encountered an error when calling the SMTP module in a 64 bit environment.
The same behaviour applies to Roland's PBNI SMTP module (topwiz).
When running the topwiz-sample app, (and our production environment as well) we are just getting a blank error in powerbuilder – an exception without any further information is thrown, and when the program tries to read the last error message from the PBX, there is nothing in it.
I then started debugging the PBX using Visual Studio and tried to find out where the error might be coming from.
It seems that after the PBX returns, (in the "invoke" function) Visual Studio catches an exception from the Powerbuilder side, pointing at the "PBSHR.dll".
That file seems to be handling OS stuff, and the new version of Powerbuilder added compatibility for Windows 11, so there might be an incompatibility with something on that end. The error does occur on Windows 10 as well, so it is not just a Win11 thing.
Will the modules for 64bit be adapted further or do we have to look for another SMTP solution?
Regards
Alexander B.