- Olan Knight
- PowerBuilder
- Monday, 9 March 2020 10:03 PM UTC
PowerBuilder v12.1, b7055
I'm attempting to implement multi-threading.
I created the object INV_AUTORPT and got everything working in a single-threaded mode.
In the Instance variables of the frame:
u_nv_autorpt inv_autorpt // AutoRpt processing object
The initialization is called from the frame in the function of_check_for_autorpt(). The following single-threaded invocation works perfectly:
IF (NOT (IsValid (inv_autorpt))) THEN
// Single-threaded invocation
inv_autorpt = CREATE u_nv_autorpt
When I replaced the single-threaded invocation with the following code....
errorReturn lret_rc
IF (NOT (IsValid (inv_autorpt))) THEN
// Multi-threaded invocation
lret_rc = SharedObjectRegister ("u_nv_autorpt", "AutoRpts")
IF (lret_rc = SUCCESS!) THEN
. . . more
....it fails first with this:
....and then with a SharedObjectCreatePBSessionError! error; my message is:
Any ideas on why that first error is occurring????
Thank You,
Olan
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.