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

Home » Public Forums » archive » Re: Attempt to store into an expression: Structure reference
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: Attempt to store into an expression: Structure reference [message #63278 is a reply to message #63277] Tue, 04 November 2008 08:58 Go to previous messageGo to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
Initialised with /heap_allocate:

IDL> help,((*(s.tab))[i]).img
<Expression> POINTER = <PtrHeapVar8>

IDL> ((*(s.tab))[i]).img=ptr_new(image)
% Attempt to store into an expression: Structure reference.

...still get the same. But this does work...

IDL> (*(s.tab))[i].img=ptr_new(image)

Thanks for the quick answers! And I was thinking you could never have
too many brackets when there's a pointer around! Still, I would like
to know about /heap_allocate - when do you need that?

regards,
Greg
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Read_grib under IDL 7.0
Next Topic: array subtraction

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

Current Time: Fri Oct 10 12:54:59 PDT 2025

Total time taken to generate the page: 1.11712 seconds