comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Windows/Linux reading binary data - sign problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Windows/Linux reading binary data - sign problem [message #57873] Tue, 08 January 2008 19:57 Go to previous message
russell.grew is currently offline  russell.grew
Messages: 74
Registered: February 2005
Member
Hello,

Interesting scenario here. I have some code (not written by myself)
that reads a bunch of data series from a binary file.

Most of the data series contain positive floating point numbers. One
of them contains negative numbers. On windows, this works fine. On
linux, whenever the negative numbers should appear, the values have
reverted to -2147.48. The series with only positive numbers reads fine
on both machines.

There is some manipulation to produce the data series.

Both machines are little endian, checked with http://www.dfanning.com/tips/endian_machines.html,
using IDL6.3 in both cases. Linux is 64bit gentoo, windows is a 64bit
processor running 32 bit windows.

Ideas? Perhaps there is some obvious difference between platforms that
I am unaware of?

Thanks.

Russell.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: putting data into .kml (google earth) from IDL
Next Topic: Problem Accessing Shared Objects

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:19:31 PDT 2025

Total time taken to generate the page: 0.00531 seconds