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

Home » Public Forums » archive » Re: Too many structure tags ?
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: Too many structure tags ? [message #4661] Wed, 12 July 1995 00:00
knighton is currently offline  knighton
Messages: 12
Registered: June 1995
Junior Member
In <DEVESH.95Jul11204501@image54.med.uth.tmc.edu> devesh@image54.med.uth.tmc.edu (Devesh Raj) writes:

> Hi,

> This is (hopefully) a simple problem. I'm running IDL and I keep
> getting an error message:

> "Too many parameters or structure tags defined"

> when I try to compile a simple program which contains a fairly
> big structure. I've tried to resize the code and data areas using the
> ".SIZE" command to the max allowed (65000 bytes each), but the error
> doesn't go away. What is strange is, I can successfully compile and
> run the same program on a friend's copy of PV-WAVE with much
> smaller code and data areas (32k and 8k respectively). I'll
> appreciate any helpful suggestions.

IDL has limits for just about everything, this seems to be one of them.

IDL> x = {a0:strtrim(0L,2)}
IDL> for i = 1L, 126L do x = create_struct(x, 'a'+strtrim(i,2), strtrim(i,2))
% Too many parameters or structure tags defined.
% Execution halted at: $MAIN$
IDL> print, x
{ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125}
IDL> help
% At $MAIN$
Code area used: 0% (0/32768), Symbol area used: 0% (28/8192)
# local variables: 2, # parameters: 0
.
.
.


It seems that the limit is 126 tags in an anonymous structure. I don't know
if there is a limit in named structures. Perhaps there is some way that you
could define the problem such that you could use nested structures, or
arrays, or array fields within the structure, or multiple structures.


Hope this helps.

Ken Knighton
Magnetic Fusion Research Division
General Atomics
knighton@gav.gat.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Color image
Next Topic: Re: Display list in IDL

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

Current Time: Wed Oct 08 15:36:22 PDT 2025

Total time taken to generate the page: 0.00395 seconds