--- a/TextViewer.py Wed May 23 10:48:40 2012 +0200
+++ b/TextViewer.py Wed May 23 11:45:54 2012 +0200
@@ -202,7 +202,7 @@
self.RefreshHighlightsTimer = wx.Timer(self, -1)
self.Bind(wx.EVT_TIMER, self.OnRefreshHighlightsTimer, self.RefreshHighlightsTimer)
-
+
def __del__(self):
self.RefreshHighlightsTimer.Stop()
--- a/Viewer.py Wed May 23 10:48:40 2012 +0200
+++ b/Viewer.py Wed May 23 11:45:54 2012 +0200
@@ -1029,9 +1029,10 @@
if self.Debug:
for block in self.Blocks.itervalues():
block.SpreadCurrent()
- iec_path = self.GetElementIECPath(block)
- if iec_path is not None:
- self.AddDataConsumer(iec_path.upper(), block)
+ if not isinstance(block, FBD_Block):
+ iec_path = self.GetElementIECPath(block)
+ if iec_path is not None:
+ self.AddDataConsumer(iec_path.upper(), block)
self.Inhibit(False)
self.RefreshVisibleElements()