Hi guys,
is there any way to make SharedObjectRegister work with an object contained in a PBL that was dynamically added to the library list via SetLibraryList? We use PBUnit to externally run testcases. The compiled PBUnit application basically loads a target file and adds the contained PBLs to its own library list. It works well in general but SharedObjectRegister always returns SharedObjectCreatePBSessionError! when I try it with objects that were not present in the original list. A regular create on these objects works fine.
Regards,
Benjamin
Hi Benjamin;
I was not sure but just thought that it "might" work (hoping that). I think that we would need a PBVM enhancement in this area in order for either of these to work with a Shared Object.
Thought: What about the following alternative (aka the Quarter back sneek approach) ...
1) Create one or more Dummy and "empty PBL's (ie: Dynamic001.pbl, Dynamic002.pbl, etc (as required)
2) Add the Dummy PBL's to your App's Library list in the associated Target of the IDE
3) Create the new dynamic PBL one-the fly as required.
4) Rename, and do a Copy/Replace of the new PBL over top of the DynamicNnn.pbl.
That way, the PBL dynamics is available but the library list is static. Thus satisfying the SharedObject library list restriction but adds the dynamics as required.
Food for thought (never tried this myself BTW).
Regards ... Chris
Not a big deal, really, I have boolean flags for all multithreading components to make them work single-threaded, I will just do that for unit testing. Would've been cool if it worked with shared objects, though. It was worth a try.
I appreciate your input, Chris.