[ome-devel] omero-cpp

Jerome Avondo jeromeavondo at msn.com
Tue Oct 12 14:59:24 BST 2010


Ahhaa indeed correct Josh...

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...

all fixed now,
cheers for the help as always!

J.



> Subject: Re: [ome-devel] omero-cpp
> From: josh.moore at gmx.de
> Date: Tue, 12 Oct 2010 15:51:04 +0200
> CC: ome-devel at lists.openmicroscopy.org.uk
> To: jeromeavondo at msn.com
> 
> Hi Jerome,
> 
> 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?
> 
> ~Josh.
> 
> On Oct 12, 2010, at 3:25 PM, Jerome Avondo wrote:
> 
> > I am trying to get up and running with the C++ interface to OMERO 4.2.
> > 
> > However I have a problem....
> > I have recompiled a simple c++ test program (using the 4.2 lib/headers) that was working with 4.1...
> > See attached code for the program itself...
> > 
> > I seem to generate the following error as soon as I try and retrieve any objects from omero:
> > 
> >> BasicStream.cpp:442: Ice::UnmarshalOutOfBoundsException:
> >> protocol error: out of bounds during unmarshaling
> > 
> > for example, when calling this line:
> > 
> > omero::model::PixelsPtr pixelsObject = gateway->getPixels(pixelId);
> > 
> > or this line:
> > 
> > omero::model::ImagePtr img = gateway->getImage(imgId);
> > 
> > same error....
> > 
> > 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....
> > 
> > So either my code is wrong (changes since 4.1?) or something else is going on....
> > any help would be welcome,
> > 
> > J.
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20101012/c23eb7a2/attachment.html>


More information about the ome-devel mailing list