MODA: no more free TCP channel for LockChannel

Questions about Marilou Open Devices Access (MODA)
Post Reply
Nachox
Posts: 1
Joined: Sat Jun 29, 2013 7:31 pm

MODA: no more free TCP channel for LockChannel

Post by Nachox » Fri Jul 05, 2013 4:26 pm

Hi,
I'm having problems with a project that works with multiple threads.
When I start several threads in parallel giving orders to Marilou server I get the following error message:
"MODA: no more free TCP channel for LockChannel, retry # 0"
This makes my robot to behave incorrectly.
I implemented mutex to handle concurrency, but the problem persists.
I do not know if it's a bug in my program or simply a limitation on the server.
Where I can find more detailed error information?

LR
Posts: 305
Joined: Mon Feb 12, 2007 11:55 pm
Location: FR

Re: MODA: no more free TCP channel for LockChannel

Post by LR » Fri Jul 05, 2013 5:14 pm

Hi,

By default, MODA is working with a pool of 3 TCP channels. (http://doc.anykode.com/ModaCPP__Connection.html).

You can change it while creating the Connection object:

http://doc.anykode.com/ModaCPP__Connect ... l@int.html

Cheer
LR

Post Reply