I am trying to publish to an IceStorm Service from MATLAB using the Mex Interface. Things work when I compile the Mex file in Debug (in Visual Studio 2010) but not in Release Mode. When I run it in Release mode I get the following error
Just for reference this is the code I use to initializeException when trying to initialize ice.
Instance.cpp:427: Ice::IdentityParseException:
error while parsing identity `invalid identity name `hÜÂ
Code:try { string topicManagerStr = "DemoIceStorm/TopicManager:tcp -h 127.0.0.1 -p 10203"; m_communicator = Ice::initialize(); Ice::ObjectPrx proxyBase = m_communicator->stringToProxy(topicManagerStr); mexPrintf("Created Connection\n"); TopicManagerPrx manager = TopicManagerPrx::checkedCast(proxyBase); TopicPrx hbTopic = manager->retrieve(slice::hats::hatsHbTopicName); mexPrintf("Got heartbeat topic\n"); m_heartBeatProxy = HeartBeatPrx::uncheckedCast(hbTopic->getPublisher()->ice_oneway()); TopicPrx tmTopic = manager->retrieve(slice::hats::hatsTlmTopicName); mexPrintf("Got tlm topic\n"); m_telemetryProxy = TelemetryPrx::uncheckedCast(tmTopic->getPublisher()->ice_oneway()); string message = "Initialized connection to : "; message.append(topicManagerStr); message.append("\n"); mexPrintf(message.c_str()); } catch (exception& e) { ostringstream ost; ost << "Exception when trying to initialize ice. " << endl << e.what() << endl; mexErrMsgTxt(ost.str().c_str()); }

Reply With Quote
