- Gregory Rusak
- PowerBuilder
- Friday, 1 December 2023 09:54 PM UTC
Hello,
We have a number of processes in our application (PowerBuilder 2021 build 1288) that we have multi-threaded where the callback function on the callback nvo returns the thread id as a LONG, a status code message as a STRING and the raw JSON as a STRING.
We wanted to move our JSON parsing to do the work within our thread, where the JSON STRING is parsed into a datastore, and then the datastore is passed back to the main application thread through the callback nvo function.
However, this approach does not work (just hangs) and we're wondering why you can't return a datastore back to the main thread, but you can return the JSON STRING or alternatively as we have found you can return the datastore as a BLOB using SetFullState and GetFullState.
I'm sure there must be a valid reason for this, but does seem odd to me. Also, there are no global functions or such in the dataobject; it is a simple external data source with a key, value and node columns. Here's an example of the callback functions:
Ideas and feedback are welcomed and appreciated in advance.
Thanks,
Greg
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.