10-06-2005 02:27 PM
10-07-2005 12:41 PM
Sahc,
I believe the problem you are experiencing might be due to the timeout or scope of your lock. TestStand will only release a lock under three situations: the lock is released explicitly in a step, the timeout is expired or the scope of the lock is reached. I don't believe you are releasing the lock explicitly ,so it must be one of the other two situations.
Try running your sequence without the timeouts to see if you still receive the errors. If the errors do not occur without the timeouts you might want to go back and increase the value of your timeouts.
If you find that the timeouts are not the cause of the issue, make sure that the scope of the locks you are using aren't being reached, and therefore, the lock is released. The best way to go through this process is to set a breakpoint in your sequence and step through it one step at a time.
I am including a small example that demonstrates how different threads can share access to an array using locks. If you run it with the parallel model one step at a time you will see that locks are operating correctly.
Regards,
Santiago D
NIC
10-07-2005 02:58 PM
10-07-2005 02:59 PM
10-07-2005 04:47 PM
10-10-2005 01:28 PM
10-10-2005 01:37 PM
12-01-2005 11:43 AM
12-02-2005 09:58 AM
12-06-2005 06:53 PM