Could not connect to the Telldus Service

Moderator: Telldus

Post Reply
hekj
Posts: 992
Joined: Fri Mar 17, 2023 9:45 am
Location: Stockholm
Contact:

Could not connect to the Telldus Service

Post by hekj »

I'm forced to restart the Telldus Service very often, because I get the error message "Could not connect to the Telldus Service".

I have connected my Tellstick Duo to pc with Windows XP and Windows 7 x64.

/Henrik
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Could not connect to the Telldus Service

Post by micke.prag »

The same issue on both Windows versions?

Which version of the Telldus software are you running?
Micke Prag
Software
Telldus Technologies
hekj
Posts: 992
Joined: Fri Mar 17, 2023 9:45 am
Location: Stockholm
Contact:

Re: Could not connect to the Telldus Service

Post by hekj »

micke.prag wrote:The same issue on both Windows versions?

Which version of the Telldus software are you running?
Yes, same issue on both Windows versions.

Windows XP = 2.0.102
Windows 7 x64 = 2.0.103

/Henrik
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Could not connect to the Telldus Service

Post by micke.prag »

Can you find a way to reproduce the problem?
Micke Prag
Software
Telldus Technologies
hekj
Posts: 992
Joined: Fri Mar 17, 2023 9:45 am
Location: Stockholm
Contact:

Re: Could not connect to the Telldus Service

Post by hekj »

micke.prag wrote:Can you find a way to reproduce the problem?
Maybe, I'm using NexaHome and that application asks for last sent command and value every minute.

return CLibrary_INSTANCE.tdLastSentCommand(intDeviceId, TELLSTICK_TURNON | TELLSTICK_TURNOFF | TELLSTICK_DIM);
return CLibrary_INSTANCE.tdLastSentValue(intDeviceId);

I have 35 remotely controlled devices.

I'm forced to restart the service in my Windows 7 x64 pc every day (the win xp service needs to be restarted after 7-14 days).

Can it be a memory problem, should I release the returned string?

/Henrik
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Could not connect to the Telldus Service

Post by micke.prag »

Yes, you are supposed to call tdReleaseString() on all functions returning a string.
Micke Prag
Software
Telldus Technologies
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Could not connect to the Telldus Service

Post by micke.prag »

Do I need any special version of your software or does the same thing happen with your the latest released version?
Micke Prag
Software
Telldus Technologies
hekj
Posts: 992
Joined: Fri Mar 17, 2023 9:45 am
Location: Stockholm
Contact:

Re: Could not connect to the Telldus Service

Post by hekj »

micke.prag wrote:Do I need any special version of your software or does the same thing happen with your the latest released version?
Same thing happens with all versions, you can use the latest released version.

/Henrik
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Could not connect to the Telldus Service

Post by micke.prag »

Some good, some bad news.

Good news is that we can reproduce the problem and we know where the problem is. It is also only affecting the Windows version.

Bad news is that it is not easy to fix... The problem is that the service stops receiving signals from Windows when a new client is connected. Seems like it happens after a couple of thousands successful connections.
Micke Prag
Software
Telldus Technologies
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Could not connect to the Telldus Service

Post by micke.prag »

@hekj: Could you try one thing for us?
I am guessing both tdLastSentCommand() and tdLastSentValue() happens directly after each other?
Try adding a pause between the calls and see it the same thing happens. You only need to try it against 2.0.103 since to much has changed since 2.0.102.
Micke Prag
Software
Telldus Technologies
mariasam
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Re: Could not connect to the Telldus Service

Post by mariasam »

I need any special version of your software or does the same thing happen with your the latest released version
Braindumps Braindumps
Certkiller 642-642 dumps Certkiller 642-642 dumps
Certkiller 70-648 dumps Certkiller 70-648 dumps
Certkiller mcp certification Certkiller mcp certification
Post Reply