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

Home » Public Forums » archive » Re: openr,/xdr & readu,structure problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: openr,/xdr & readu,structure problems [message #17694] Tue, 09 November 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Bob Stockwell (dejastockwell@my-deja.com) writes:

> I'd appreciate a hint or two is someone has
> ran into a problem similar to the one that I have.
> (A deja.com search hasn't helped me.)
>
> I have received a new "xdr" data file that I'm trying
> to read in using idl5.2.1 on winnt.
> (also tried on idl5.3beta, same problem)
>
> The problem is that when I read in to a defined structure,
> it sometimes (rarely) reads in a huge chunk. To be specific,
> the structure read is only 92 bytes, but the READU command
> seems to send the filepointer to the end of the file or
> something like that). The structure will now contain
> junk information.
>
> I suspect that this is because of my platform,
> since this code works fine on an SGI, but not on WinNT.
> Anyone know why this is happening, and how to handle
> it properly?

This can't possibly be Wayne Landsman's file pointer
corruption bug again, can it?

Have you tried setting the BINARY and/or NOAUTOMODE
keywords on the OPENR statement. It might help.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Conversions among datums and geographic coordinates
Next Topic: openr,/xdr & readu,structure problems

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

Current Time: Wed Oct 08 15:48:30 PDT 2025

Total time taken to generate the page: 0.00539 seconds