checkedCast() through Ice::Dispatcher
I'm playing with a simple Qt GUI which uses AMI and the new Dispatcher facility. The code follows the examples from the Manual and the MFC demo.
I came across a hang condition and I'm not entirely sure about the cause.
Calling synchronous and asynchronous methods generated from my Slice file work as expected.
But if I have a MyPrx::checkedCast() before making a synchronous call it seems to hang some place between MyDispatcher::dispatch() and arriving into the Qt thread.
If I don't install my Dispatcher, a checkedCast() does not hang.
I noticed that the MFC demo uses uncheckedCast() in the begin_* and end_* AMI calls which makes sense. But shouldn't it be safe to call any remote method through the Dispatcher, including checkedCast()? Or is it special in some way?
If it's supposed to work, I'll do more checking and come up with some sample code.
Thanks a lot,
Alex
Linux, Ice 3.4.0, Qt 4.5.3
Alex Makarenko
Marathon Robotics
project: multi-robot systems