• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Garbage collection and objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Garbage collection and objects


  • Subject: Re: Garbage collection and objects
  • From: Victor Yee <email@hidden>
  • Date: Tue, 13 Feb 2001 07:52:06 -0500

Thank you, Scott, for the information.

> If you watch memory use, you'll think you have a leak, as memory in use grows
> and grows. Then the garbage collector kicks in, and the objects in use bop over
> to new memory, and the old hunk clears out.

This was the behaviour that I was experiencing on a stay-open applet. As items were intermittently processed, free memory continued to decrease.

I expected garbage collection to occur at some point, but free memory kept decreasing until almost zero where either an out-of-memory occurred or the applet simply stopped responding.

Since I was using script objects to carry data, I thought that perhaps that created a problem, although that didn't seem likely. Still, since I lack experience, I thought I'd ask.

Sigh... I guess I'll have to go through and check the script code, there must be a leak in there somewhere. At least I know that the problem results from the item-processing section.

Thanks again.

--
Victor


References: 
 >Re: Garbage collection and objects (From: email@hidden)

  • Prev by Date: Re: Netscape messenger subjects
  • Next by Date: Re: Do Script and QuicKeys Backgrounder
  • Previous by thread: Re: Garbage collection and objects
  • Next by thread: Changing File Creation/Modification Dates
  • Index(es):
    • Date
    • Thread