<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Ahhaa indeed correct Josh...<br><br>I stupidly had a copy of the old omero_client.dll (v4.1) in the visual studio project folder, which was what it was loading when executing my test app...<br><br>all fixed now,<br>cheers for the help as always!<br><br>J.<br><br><br><br>> Subject: Re: [ome-devel] omero-cpp<br>> From: josh.moore@gmx.de<br>> Date: Tue, 12 Oct 2010 15:51:04 +0200<br>> CC: ome-devel@lists.openmicroscopy.org.uk<br>> To: jeromeavondo@msn.com<br>> <br>> Hi Jerome,<br>> <br>> An UnmarshalOutOfBoundsException almost always points to something being out of sync. Is it at all possible that you're linking against a 4.1 library? Are you sure you're using Ice 3.3? How did you build the 4.2 library? Does its version match that of your servers?<br>> <br>> ~Josh.<br>> <br>> On Oct 12, 2010, at 3:25 PM, Jerome Avondo wrote:<br>> <br>> > I am trying to get up and running with the C++ interface to OMERO 4.2.<br>> > <br>> > However I have a problem....<br>> > I have recompiled a simple c++ test program (using the 4.2 lib/headers) that was working with 4.1...<br>> > See attached code for the program itself...<br>> > <br>> > I seem to generate the following error as soon as I try and retrieve any objects from omero:<br>> > <br>> >> BasicStream.cpp:442: Ice::UnmarshalOutOfBoundsException:<br>> >> protocol error: out of bounds during unmarshaling<br>> > <br>> > for example, when calling this line:<br>> > <br>> > omero::model::PixelsPtr pixelsObject = gateway->getPixels(pixelId);<br>> > <br>> > or this line:<br>> > <br>> > omero::model::ImagePtr img = gateway->getImage(imgId);<br>> > <br>> > same error....<br>> > <br>> > Not sure what is going on here, tried it on two different omero 4.2 servers, that where setup by different people (myself and our ntwk admin) and it seems a consistent error. So unless both omero servers are incorrectly setup, which would be strange but still possible :), I would start ruling out the omero install....<br>> > <br>> > So either my code is wrong (changes since 4.1?) or something else is going on....<br>> > any help would be welcome,<br>> > <br>> > J.<br>> <br>                                            </body>
</html>