Page 1 of 1

OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

PostPosted: Fri Aug 21, 2009 11:42 am
by bernhard
Good afternoon!

I'm having trouble to get an OmeroCpp client running on Windows 64bit. The basic communication seems to work as long as the server does not return data. I can create a session and a query service. If I run a query that returns something I get a Ice::UnmarshalOutOfBoundsException, whereas a query that returns nothing works without any exception.

The Windows 32bit build works fine, as well as Linux 32bit and 64bit builds.

The server is on a Linux 64bit system.

For your inforamtion: I did compile the OmeroCpp library with the sources that were generated by a Linux build created with the build.py script provided by Omero.

Thanks for help! Bernhard

Re: OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

PostPosted: Fri Aug 21, 2009 12:53 pm
by cxallan
I don't think this is really going to matter but is this XP x64, Vista 64-bit edition or Windows 7 64-bit edition Bernhard?

Re: OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

PostPosted: Fri Aug 21, 2009 1:51 pm
by bernhard
Hi Chris,

it's a Vista 64bit system.

Thanks! Bernhard

Re: OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

PostPosted: Mon Aug 24, 2009 5:08 pm
by jmoore
Hi Bernhard,

the general rule is UnmarshalOutOfBoundExceptions come from *.ice version mismatches. There was a period early in OmeroCpp development, however, when the compiler flags were causing these and other exceptions:

http://www.zeroc.com/forums/bug-reports ... stems.html

Another possibility that I've just run into is that the System environment variables might not be set properly for x64 systems:

http://lists.openmicroscopy.org.uk/pipe ... 02042.html

From the Ice README.txt,
Code: Select all

If you built an x64 configuration, use this setting instead (the
x64 directory must come first in your PATH):

set PATH=<Ice installation root directory>\bin;%PATH%
set PATH=<Ice installation root directory>\bin\x64;%PATH%


~J.

Re: OmeroCpp Win 64bit - Ice::UnmarshalOutOfBoundsException

PostPosted: Tue Aug 25, 2009 6:49 am
by bernhard
Hi Josh!

There was a period early in OmeroCpp development, however, when the compiler flags were causing these and other exceptions:

http://www.zeroc.com/forums/bug-reports ... stems.html


I've seen this thread in the forum, however, it does not help here as we're compiling OmeroCpp with Visual Studio.

Concerning the second point, it's something not relevant for our current setup. I don't build OmeroCpp on Windows with the omero build scripts. As said before, I'm copying the generated files from a Linux build. Therefor, all I need are the Ice libraries and those I'm using are the 64bit versions, otherwise the linkage would fail.

Maybe I should try generating the OmeroCpp files on Windows. Have you've tried to build OmeroCpp on Windows before? From what I can see in the scons files, I guess at least the compilation is not portable to Windows without setting up a different environment.

Thanks! Bernhard