I've downloaded and installed Ice-3.4.2 and created the demo programs in Python 2.6. These work perfectly. I then built the C++ sample from the manual using Visual Studio 2010 running under Windows 7 (64-bit) and tried to run that. I've got two problems:
I'm building a 32-bit application, linking against the 32-lib libraries in the "vc100" subfolder (the main folder gives the same result).
- The line below gives me an access violation. Moving the value to a temporary fixes the issue (I'm using the debug heap):
Code:adapter->add(object, ic->stringToIdentity("SimplePrinter"));- After fixing the above I can then start the server and client, but I get an OperationNotExistException in the generated Printer.cpp file:
The current operation appears to be an empty string, and it is failing on the client's checked cast. The same thing happens if I try connecting the Python client to the C++ server.Code:::Ice::DispatchStatus Demo::Printer::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current) { ::std::pair< ::std::string*, ::std::string*> r = ::std::equal_range(__Demo__Printer_all, __Demo__Printer_all + 5, current.operation); if(r.first == r.second) { throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation); }
Has anyone had a similar problem, or know what the solution is?

Reply With Quote
