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

Home » Public Forums » archive » passing object references
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
passing object references [message #13472] Wed, 11 November 1998 00:00
philip aldis is currently offline  philip aldis
Messages: 13
Registered: October 1998
Junior Member
Hi,
I having a bit of trouble with my object references and passing them
round. I have a feeling it's to do with passing by value and by
reference, but I haven't had time to test this out yet, so before I
start ripping my code apart - I'll see if what I suspect is true.

I have two widget programs which deal with loading some data in and then
the second one does an animation. The loader program creates the object
and loads the data, using the methods and then passes the object with
its data loaded in to the animator widget program which calls the object
methods for animating. I pass the object in as a keyword.

Previously the object had been part of the info structure of my loading
widget program, and then I simply call my animator program
ANIMATOR, object = info.object

.....fine so far. Now I've tested the object I send, the object I
receive and they are all valid. Within the main animation program - i.e.
before the call to xmanager, I've got the user value and tested the
validity of the object, and yep you guessed it, it's valid. BUT when I
get the user value in my event handlers, the object is suddenly no
longer valid.

Now I've looked through my code, and I simply can't see anything that is
wrong except for perhaps something fundamental, such as, should I really
be passing a pointer to my object reference, rather than the actual
object reference, which perhaps is only sent by reference, rather than
by value.
Is it something to do with the fact that I have sent it in a keyword?

I realise there may be something in my program that could be wrong, but
any help on how IDL passes the object references would be helpful.

cheers,
Phil
--
____________________________________________________________ ______________

Philip Aldis
Room B803/4
DERA Malvern tel:0044 1684 897241
St.Andrew's Road fax:0044 1684 894185
WR14 3PS
England

____________________________________________________________ ______________

The information contained in this e-mail and any subsequent
correspondence is private and is intended solely for the intended
recipient(s). For those other than the intended recipient(s) any
disclosure, copying, distribution, or any
action taken or omitted to be taken in reliance on such information is
prohibited and may be unlawful.
____________________________________________________________ ______________

DERA disclaimer:
The views expressed above are entirely those of the writer and do not
represent the views, policy or understandingof any other person or
official body.
____________________________________________________________ ______________
[Message index]
 
Read Message
Previous Topic: 24-bit image planes (was Colored MPEGs)
Next Topic: Re: Device's bits_per_pixel keyword

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

Current Time: Fri Oct 10 12:09:25 PDT 2025

Total time taken to generate the page: 0.96080 seconds