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

Home » Public Forums » archive » How many selfs do I have?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How many selfs do I have? [message #87393] Thu, 30 January 2014 10:58 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I was stepping through an object method using the debugger. As I reached the end of the method I was taken to the object cleanup method, with lines such as the following:

if PTR_VALID(self.pPts) then ptr_free, self.pPts
if OBJ_VALID(self.oPolyLine) then obj_destroy, self.oPolyLine
if OBJ_VALID(self.oPolyGon) then obj_destroy, self.oPolyGon

At the end of the cleanup method, I was taken back to the start of the cleanup method. So I stepped through the cleanup again -- and was again taken back to the start. Ultimately the cleanup method was called four times. Each time through, if I did a "help, self" I would get a different ID, e.g.

SELF OBJREF = <ObjHeapVar48371(FIELDPOINTGROUP)>
SELF OBJREF = <ObjHeapVar48445(FIELDPOINTGROUP)>
SELF OBJREF = <ObjHeapVar48524(FIELDPOINTGROUP)>
SELF OBJREF = <ObjHeapVar48551(FIELDPOINTGROUP)>

Does anyone have any idea what might be going on here, or what further diagnostics I might use? Even if I have multiple instances of the object (which I am not aware of ) do they all get destroyed even when I am only using one instance?

This part of a very large widget application which typically crashes IDL (dumping core) about once a day. So I am trying to look for ways to clean the code, e.g. to remove unnecessary object creation.

Thanks, --Wayne


print,!Version
{ x86_64 darwin unix Mac OS X 8.3 Nov 15 2013 64 64}
[Message index]
 
Read Message
Read Message
Previous Topic: How to obtain running averages for different time scales in IDL?
Next Topic: Coyote Library Updates

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

Current Time: Wed Oct 08 18:32:53 PDT 2025

Total time taken to generate the page: 0.28304 seconds