MarkRiffey
01-26-2021, 08:55 PM
Friedrich,
I am using a DLL we've called from SB for a long time - and it finally needed some changes.
For reasons I have not been able to determine, the DLL works when called by a small hand code app, but GPFs when SB calls it. Given that the SB doc indicates that mangling is a no-no, I thought maybe that was the problem, but there's no mangling.
Prototype: GetPCC(*CSTRING PCC_CODE),SHORT,NAME('GetPCC') - I have also tried (STRING PCC_CODE) with the same results (GPF).
Whether I call the DLL with a SB runtime variable that is empty, or one that has contents, SB GPFs. The odd thing is that this installer has been around for quite some time, and likewise has the parameter.
If I remove the parameter from the DLL's prototype, SB works fine.
Screenshot of SB setup image and prototype in code: https://p168.p3.n0.cdn.getcloudapp.com/items/rRukwrxD/06facbc0-a88e-40b9-a573-7a835c932a1b.png?v=53e641f63ba71df0b579c29efe754d8 9
It's unclear what I am doing incorrectly, but I'm sure there's something.
Mark
I am using a DLL we've called from SB for a long time - and it finally needed some changes.
For reasons I have not been able to determine, the DLL works when called by a small hand code app, but GPFs when SB calls it. Given that the SB doc indicates that mangling is a no-no, I thought maybe that was the problem, but there's no mangling.
Prototype: GetPCC(*CSTRING PCC_CODE),SHORT,NAME('GetPCC') - I have also tried (STRING PCC_CODE) with the same results (GPF).
Whether I call the DLL with a SB runtime variable that is empty, or one that has contents, SB GPFs. The odd thing is that this installer has been around for quite some time, and likewise has the parameter.
If I remove the parameter from the DLL's prototype, SB works fine.
Screenshot of SB setup image and prototype in code: https://p168.p3.n0.cdn.getcloudapp.com/items/rRukwrxD/06facbc0-a88e-40b9-a573-7a835c932a1b.png?v=53e641f63ba71df0b579c29efe754d8 9
It's unclear what I am doing incorrectly, but I'm sure there's something.
Mark