[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: openr,/xdr & readu,structure problems
- Subject: Re: openr,/xdr & readu,structure problems
- From: davidf(at)dfanning.com (David Fanning)
- Date: Tue, 9 Nov 1999 15:33:00 -0700
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <email@example.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:17197
Bob Stockwell (firstname.lastname@example.org) 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.
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: email@example.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155