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

Home » Public Forums » archive » 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
object question, persistent vs. scope [message #61942] Wed, 13 August 2008 12:00
cgoethel is currently offline  cgoethel
Messages: 20
Registered: April 2008
Junior Member
Hi All,

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.

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.

Any help is appreciated!!!

Thanks - Cindy
[Message index]
 
Read Message
Previous Topic: Problem with multi plot
Next Topic: Re: object question, persistent vs. scope

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

Current Time: Sat Oct 11 10:08:26 PDT 2025

Total time taken to generate the page: 0.96910 seconds