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

Home » Public Forums » archive » ASSOC and structures - structure size 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
Re: ASSOC and structures - structure size problem [message #8898 is a reply to message #8807] Tue, 29 April 1997 00:00 Go to previous message
Joseph M Zawodny is currently offline  Joseph M Zawodny
Messages: 24
Registered: March 1996
Junior Member
Steve Phillips wrote:
>
> I'm trying to use ASSOC to link a structure with a large file.
>
> The structure consists of lonarr(48) followed by intarr(14423). This pattern
> being repeated 16036 times in the file.
>
> I ASSOC the structure with the file (including 16252 byte offset for a file
> header)
>
> The structure size should be 29038 bytes , but HELP,/STRUCT gives it as 29040.
>
> I would accept the 2 byte difference as a structure ID or something. But the
> data values I'm getting are all wrong - suggesting that ASSOC is not mapping
> the structure onto the file correctly, or it's using the wrong structure size
> ?
>
> Can anyone explain this anomaly.

Chances are that the problem is related to the odd number of 2-byte
integers in the second vector of your structure. Make a test file
with an even number (like 14424) of elements and I bet it will work.

Sorry, I do not have a fix for this though.

Good Luck.

JMZ
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Windows selection in PV-Wave
Next Topic: Re: PRINTING IN IDL4.0

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

Current Time: Sun Nov 30 07:14:27 PST 2025

Total time taken to generate the page: 0.39855 seconds