Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wrote an ISAPI Extension in C which hosts PowerBuilder code. It works great. The client PowerBuilder app performs an HTTP GET to the URL and my extension runs the requested code.

Another person who is using it has requested that in the PowerBuilder code he be able to disconnect from the client app and continue processing, storing the results in a database.

If possible, I can add a function to my DLL that the PowerBuilder code calls that would do whatever is needed to disconnect.

What I have tried:

The research I've done makes it look like I would have to run the PowerBuilder code from a separate thread and return HSE_STATUS_PENDING from HttpExtensionProc.

This would require a major restructuring plus I'm not familiar with multi-threading in C, I am primarily a PowerBuilder developer. A solution that doesn't require a major rewrite would be a big plus.
Posted
Updated 26-Mar-20 9:46am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900