http://www.switchking.se/forum/viewtopic.php?f=10&t=913
With the latest TelldusCore driver, I have also noticed that client connections has been lost (one time it was EventGhost (EG) and one time it was Switch King (SK)). Without repeating the details already explained (folllow the link above), I'll keep it a bit shorter.
In essence, I try to monitor the status of my own (EG) client connection and if it is lost, my idea is to reconnect. But my initial tests below shows that it does not work because I get a crash in tdClose(). It seems that tdInit() can be called many times without problems.
We need with highest priority a solution to fix this instability problem so that client connections not are lost.
Best regards
Code: Select all
from ctypes import windll
dll = windll.LoadLibrary("TelldusCore.dll")
dll.tdInit()
79962352
dll.tdInit()
79962352
dll.tdInit()
79962352
dll.tdInit()
79962352
dll.tdInit()
79962352
dll.tdInit()
79962352
dll.tdClose()
79962352
dll.tdClose()
Traceback (most recent call last):
File "<input>", line 1, in <module>
WindowsError: exception: access violation reading 0x00000004
dll.tdInit()
79962352
dll.tdClose()
Traceback (most recent call last):
File "<input>", line 1, in <module>
WindowsError: exception: access violation reading 0x00000004
Below is the part from the Telldus logfile that shows when my EG client lost it's connection to Telldus Service. From telldus_service_debug:
Code: Select all
Sun Sep 23 22:38:03 2012 [38144] 0 - Sent message to 3 clients
Sun Sep 23 22:38:04 2012 [38144] 0 - Sent message to 3 clients
Sun Sep 23 22:38:04 2012 [38144] 0 - Lost connection, removing it
Sun Sep 23 22:38:04 2012 [38144] 0 - Sent message to 2 clients
Sun Sep 23 22:38:04 2012 [38144] 0 - Sent message to 2 clients
Sun Sep 23 22:38:06 2012 [38144] 0 - Sent message to 2 clients