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

Home » Public Forums » archive » Re: IDL memory limitation? (continuted)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL memory limitation? (continuted) [message #45634] Sat, 17 September 2005 13:07
IDLmastertobe is currently offline  IDLmastertobe
Messages: 54
Registered: June 2004
Member
Thanks Mike. Your suggestion is really hepeful. I will check with it.
Re: IDL memory limitation? (continuted) [message #45635 is a reply to message #45634] Sat, 17 September 2005 12:25 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> I am taking in 3D data and visualizing it by using IDLgrContainer. I
> created IDLgrModel and IDLgrAxis etc and put them together to visualize
> them. I can rotate it or flip it any way I want. It is a real time
> visualization. Does anyone know how I can overcome this memory problem?
> I currently have 1GB of RAM installed and 2GB of Virtual Memory
> allocated.
>

Since you're using object graphics, are you sure that you're destroying
all of your objects when appropriate? Simply forgetting an obj_destroy
on the end of a loop or subroutine will lead to all your memory getting
filled up. Also, note that reassigning a variable name does not destroy
the object.

a = obj_new('someobject')
a = obj_new('someobject') ; <-- memory leak!

a = obj_new('someobject')
obj_destroy, a
a = obj_new('someobject') ; <-- no memory leak now


Don't know if you have either of these cases in your program or not.
You can try doing a help, /heap and see how many objects and pointers
you have defined. If the list keeps growing and growing and growing
until memory is gone, I'd think a memory leak is the most likely culprit.

-Mike
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Subset Image
Next Topic: Help me plz abt this c program

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

Current Time: Wed Oct 08 13:48:27 PDT 2025

Total time taken to generate the page: 0.00605 seconds