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

Home » Public Forums » archive » Re: object question, persistent vs. scope
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: object question, persistent vs. scope [message #61941] Wed, 13 August 2008 12:14
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
cgoethel@igpp.ucla.edu writes:

> I'm trying to make the transition to IDL object oriented programming,
> but am having a few problems with the visibility of my object. I have
> a very basic GUI - myGUIProgram, which is not an object, but has a
> definition procedure and an event handler. I create a new object (one
> that I wrote) in the definition procedure, and it is successfully
> realized
>
> MYSTATUS OBJREF =
> <ObjHeapVar1(THM_UI_STATUSBAR)> ;from command line help
>
> Using a stop in my program right before Xmanager is called, I can
> successfully call all of its methods. However, my event handler
> procedure is not able to see it, or it is invalid
>
> Invalid object reference: <OBJREF (<ObjHeapVar1>)>
>
> I've tried passing myObject to the event handler in a state structure
> stored in uvalue (using widget_control get and set procedures), but
> that doesn't work either.

Humm. It is *extremely* unlikely that this doesn't work. Can
we see how you are defining your object and how you are putting
it in your state structure?

> Am I missing something big about OO or misunderstand what scope and
> persistence really mean for objects? I've got 3 reference books and
> the IDL help, but I am lost.

I think you just have a programming error somewhere that is confusing
you. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Previous Topic: object question, persistent vs. scope
Next Topic: subset a 2d array

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

Current Time: Fri Oct 10 14:14:44 PDT 2025

Total time taken to generate the page: 1.35428 seconds