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

Home » Public Forums » archive » Re: Ghost object
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: Ghost object [message #21190] Thu, 17 August 2000 00:00 Go to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
Well, I got that problem to repeat itself. Although I have no idea what
causes it, I am now convinced it is a bug. Here is what happens. Thanks
to Randall Frank for suggestion to use head numbers to locate the source
of leaking heap variable, it helped.
The "ghostfont" is caused to appear by the following line in the code:

self.scene -> add, view

If this line is commented out, the ghost "IDLgrFont" does not appear.
*If IDL is restarted*, it does not appear with this line present either,
*until* .Reset_session is not invoked several times (I have not tested,
how many exactly). .Full_reset_session does not cure the problem. I
could provide code snippets but I'll just send output logs:

***Comment out "self.scene -> add, view", compile, run.
IDL> display
*** Perform cleanup, but leave all code-created FONT ant TEXT objects undeleted.
IDL> widget_control, /reset & close, /all & heap_gc, /verbose & retall
<ObjHeapVar3123>
STRUCT = -> IDLGRFONT Array[1]
<ObjHeapVar3156>
STRUCT = -> IDLGRTEXT Array[1]
<ObjHeapVar3160>
STRUCT = -> IDLGRTEXT Array[1]
***All of these were made by the code. First TEXT is 33 references
***after the code-created FONT.
***Uncomment "self.scene -> add, view" and recompile, run
% Compiled module: DISPLAY.
IDL> display
TEMP (PARGRPLOT_TOP_WINDOW)
OBJREF = <ObjHeapVar3179(PARGRPLOT)>
IDL> widget_control, /reset & close, /all & heap_gc, /verbose & retall
<ObjHeapVar3190>
STRUCT = -> IDLGRFONT Array[1]
<ObjHeapVar3223>
STRUCT = -> IDLGRTEXT Array[1]
<ObjHeapVar3227>
STRUCT = -> IDLGRTEXT Array[1]
<ObjHeapVar3245>
STRUCT = -> IDLGRFONT Array[1]
***First three these made by the code. First TEXT is 33 references
***after the code-created FONT.
***Second instance of IDLGRFONT appears AFTER everything else.

I have no idea what exactly is going on, but adding a view to a scene
should not cause this. Looks like a bug in .Reset_session.
Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Rotten behavior with rot command
Next Topic: cooccurrence homogeneity: what equation?

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

Current Time: Fri Oct 10 13:30:07 PDT 2025

Total time taken to generate the page: 0.24271 seconds