--- a/runtime/PLCObject.py Thu May 28 17:29:19 2009 +0200
+++ b/runtime/PLCObject.py Sat May 30 16:44:07 2009 +0200
@@ -25,7 +25,6 @@
from threading import Timer, Thread, Lock
import ctypes, os, commands, types, sys
if os.name in ("nt", "ce"):
from _ctypes import LoadLibrary as dlopen
@@ -405,7 +404,9 @@
Return a list of variables, corresponding to the list of required idx
if self.PLCStatus == "Started":
+ self.PLClibraryLock.acquire() tick = self._WaitDebugData()
+ #PLCprint("Debug tick : %d"%tick) @@ -422,10 +423,8 @@
PLCprint("Debug error idx : %d, expected_idx %d, type : %s"%(idx.value, given_idx,typename.value))
+ self.PLClibraryLock.release()