Re: Conflicting Data structures [message #16116 is a reply to message #15933] |
Mon, 28 June 1999 00:00  |
Nando Iavarone
Messages: 48 Registered: December 1998
|
Member |
|
|
<HTML>
Dirk Fabian wrote:
<BLOCKQUOTE TYPE=CITE>Ideally, i would like the user (me) to be able to
choose a new data file, read it
<BR>in, and query it, but i keep get the conflicting data structures error.
Even
<BR>if i exit the program and rerun it, it seems like that structure is
still hanging
<BR>around. I can't figure out how or where to zero it out!
What am i missing?</BLOCKQUOTE>
A few weeks ago I had a "Conflicting Data structures". I tried to
<BR>redefine a non anonymous structure. I had a file with an header
<BR>defining its dimension, and I use them to allocate a structure array.
<P>For example:
<P>pro try_struct__define
<BR> n = 5
<BR> struct = {try_struct, $
<BR>
a: findgen(n)}
<BR>end
<P>pro pippo
<BR> a = {try_struct}
<BR> help, /struct, a
<P> n = 6
<BR> b={try_struct, $
<BR> a: findgen(n)}
<BR>
<BR> help, /struct, b
<BR>end
<BR>
<P>To resolve the problem I had to use an anonymous struct.
<BR>pro pippo
<BR> n = 5
<BR> a = {$
<BR> a: findgen(n)}
<BR> help, /struct, a
<BR> n = 6
<BR> b={$
<BR> a: findgen(n)}
<BR> a={$
<BR> a: findgen(n)}
<BR> help, /struct, a,b
<BR>end
<PRE>--
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040 Frascati - RM
Tel: +39-6-944091 (switchboard)
9440968 (direct)
E-mail:
f.iavarone@acsys.it
FrdndVrn@altavista.net</PRE>
</HTML>
|
|
|