| || |
OTA: IRun2::LockObject() always returns FALSE
Hello QC users,
I am using QC over the OTA API and want to apply changes to a Run object (and it's steps). Because this is in an concurrent user environment, I need to LockObject() the Run object.
I am wondering, that appearently in contrast to the help description, "LockObject()" always returns FALSE, even when it did lock correctly (as seen in the site admin). Am I overlooking anything here?
Subsequently, if I'd to live with it, how can I manage to detect an existing lock? Normally, I'd use something like this:
while ( FALSE == iRun2.LockObject() )
Third, do I need to lock the child run steps separately, or are these locked automatically?
Any ideas how to solve this?
Thanks for all comments!
Re: OTA: IRun2::LockObject() always returns FALSE
Hmh, found out some more:
If object is not locked, LockObject() returns FALSE, as said above. If object is already locked, LockObject() throws an exception containing meaningful exception string.