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

Home » Public Forums » archive » Just for fun
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: Just for fun [message #77527 is a reply to message #77461] Fri, 09 September 2011 01:07 Go to previous messageGo to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Wed, 7 Sep 2011 12:54:23 -0700 (PDT), Bob <bobnnamtrop@gmail.com>
wrote:

> Yikes! This makes me fear New Graphics.

Exactly! Even closing the window doesn't clean up everything:

IDL> .RESET_SESSION
IDL> help,/heap
Heap Variables:
# Pointer: 0
# Object : 0
IDL> p=plot(findgen(10))
IDL> help,/heap
Heap Variables:
# Pointer: 5031
# Object : 4425
IDL> obj_destroy,p ; Window is still there
IDL> help,/heap
Heap Variables:
# Pointer: 5031
# Object : 4424
...close window...
IDL> help,/heap
Heap Variables:
# Pointer: 1171
# Object : 1399

This would make sense if the next plot reuses some of these objects:

IDL> p=plot(findgen(10))
IDL> help,/heap
Heap Variables:
# Pointer: 5050
# Object : 4445

It seems to do that, but some objects are not reused/deleted, so
plotting+closing many times increases heap allocation. This serves no
purpose that I can think of.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: More Function Graphics Fun!
Next Topic: resolve_all from inside a procedure?

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

Current Time: Wed Oct 08 19:57:22 PDT 2025

Total time taken to generate the page: 0.00549 seconds