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

Home » Public Forums » archive » anonymous structure as member of named event structure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
anonymous structure as member of named event structure [message #41102] Fri, 01 October 2004 12:50 Go to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Hi all,

I want to send some info around between widgets and use widget_control,
send_event = ... to do that. Since I want to use the name to identify
the type of event, the event structure should be named. Now, the actual
information I want to send is an anonymous structure (if absolutely
necessary, I could make that named as well, but I would prefer anonymous).

It turns out that IDL doesn't like (or rather, doesn't allow) anonymous
structures to be members of a named structure. At the moment I am using
a pointer to the anonymous structure as a member of the named event
structure. However, I don't like that solution too much since the event
handler to which I send the event has to free the pointer. As long as I
do all the programming, I will remember that, but if several people are
working on the project, I'll have to say "Hey, don't forget to free that
pointer I am sending to you!" all the time.

Any suggestions?

Thanks,
Benjamin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL removes dimensions of size 1 automatically
Next Topic: array operators - vector processing relevant

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

Current Time: Sun Oct 12 09:37:47 PDT 2025

Total time taken to generate the page: 1.76067 seconds