[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Too many structure tags ?



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