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

Home » Public Forums » archive » Conflicting Data structures
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: Conflicting Data structures [message #16116 is a reply to message #15933] Mon, 28 June 1999 00:00 Go to previous message
Nando Iavarone is currently offline  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.&nbsp;&nbsp;&nbsp;&nbsp;
Even
<BR>if i exit the program and rerun it, it seems like that structure is
still hanging
<BR>around.&nbsp; I can't figure out how or where to zero it out!&nbsp;
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>&nbsp;&nbsp;&nbsp; n = 5
<BR>&nbsp;&nbsp;&nbsp; struct = {try_struct, $
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
a: findgen(n)}
<BR>end

<P>pro pippo
<BR>&nbsp;&nbsp;&nbsp; a = {try_struct}
<BR>&nbsp;&nbsp;&nbsp; help, /struct, a

<P>&nbsp;&nbsp;&nbsp; n = 6
<BR>&nbsp;&nbsp;&nbsp; b={try_struct, $
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; a: findgen(n)}
<BR>&nbsp;
<BR>&nbsp;&nbsp;&nbsp; help, /struct, b
<BR>end
<BR>&nbsp;

<P>To resolve the problem I had to use an anonymous struct.
<BR>pro pippo
<BR>&nbsp;&nbsp;&nbsp; n = 5
<BR>&nbsp;&nbsp;&nbsp; a = {$
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; a: findgen(n)}
<BR>&nbsp;&nbsp;&nbsp; help, /struct, a
<BR>&nbsp;&nbsp;&nbsp; n = 6
<BR>&nbsp;&nbsp;&nbsp; b={$
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a: findgen(n)}
<BR>&nbsp;&nbsp;&nbsp; a={$
<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a: findgen(n)}
<BR>&nbsp;&nbsp;&nbsp; help, /struct, a,b
<BR>end
<PRE>--&nbsp;
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040&nbsp; Frascati - RM
Tel: +39-6-944091 (switchboard)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 9440968 (direct)
E-mail:&nbsp;
&nbsp;&nbsp;&nbsp; f.iavarone@acsys.it
&nbsp;&nbsp;&nbsp; FrdndVrn@altavista.net</PRE>
&nbsp;</HTML>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sinagular Value in Complex Array
Next Topic: Compiling DLM's using Borland C++ builder

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

Current Time: Thu Oct 09 14:53:27 PDT 2025

Total time taken to generate the page: 0.63326 seconds