Results 1 to 2 of 2
  1. #1
    itaipee is offline Member
    Join Date
    Dec 2008
    Rep Power

    Default good memory managment

    I'm tryign to find the rootcause for my memory consuming program.

    My basic data structure is "SpcVarVal" :

    Java Code:
    public class SpcVarVal 
    	private String val;
    	private SpcVarType varType;
    	//  from here is the constructor and methods
    "SpcVarType" class contains string ( name ) and also some flags.

    The SpcVarType objects are created in the begining of the program and remains constant.

    The SpcVarVal objects are dynamic - created and removed very often.

    because the link to SpcVarType - they are not deleted ?

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Yes they are garbage collected, unless something else contains a reference to them. Them containing a reference to something else is irrelevant.

Similar Threads

  1. Hello Good Morning, Good afternoon, and Good Evening
    By MrFreeweed in forum Introductions
    Replies: 3
    Last Post: 12-11-2009, 04:32 PM
  2. Good Day
    By Kinyo in forum Introductions
    Replies: 0
    Last Post: 03-15-2009, 01:07 AM
  3. Anyone good at math?
    By iWonder in forum Forum Lobby
    Replies: 12
    Last Post: 01-11-2009, 05:12 PM
  4. Replies: 2
    Last Post: 08-21-2008, 07:33 PM
  5. Any Good e-book in JSF
    By felixtfelix in forum Web Frameworks
    Replies: 0
    Last Post: 05-08-2008, 05:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts