port callback not invoked - C#, Java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

port callback not invoked - C#, Java

Keresztfalvi, Laszlo
Hello,

Callback methods are not working properly under C# and Java.
We test with the latest stable build. Is there a chance that this issue has been resolved in the git?

Yarp version: 2.3.63 windows binary; Swig 3.0.5; Oracle JDK 1.8.0_31

  • By extending the BottleCallback class the onRead() method is invoked under Java as excepted but the same method under C#  is not invoked.
  • By extending BufferedPortBottle and overriding its onRead() method then using port's useCallback() the onRead(Bottle datum) method is not invoked neither in Java nor in C#.

Sample code:

  Network.init();
  BufferedPortBottle _port = new BufferedPort();
  MyBottleCallback _callback = new MyBottleCallback();      // extends BottleCallback overrides method onRead(Bottle datum)
  _port.open("/read");
  _port.useCallback(_callback);
 
Any advise?

Thank you,
Laszlo

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Robotcub-hackers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/robotcub-hackers