Title: memory leak... some one help, please!!
I replaced the append method with this:
  public void append(String str)
  {
       try
    {
      getDocument().insertString(getDocument().getLength(), str, null);
      if (getText().length() > this.size_of_buffer)
      {
         System.out.println("hit  "+str + "\n" + size_of_buffer + " " + cut_back + " " + getText().length() + " " + getDocument().getLength());
        getDocument().remove(0,getText().length() - this.size_of_buffer + cut_back);
         System.out.println(""+getText().length());
    }                                             
   }
   catch (BadLocationException e)
   {
   }
    setCaretPosition(getText().length());

  }
 
with no effect on the memory leak...
running this little classes main on win2K puts the memory somewhere up around 40MB by the time it finishes.
I'm still at a loss...
aaron
-----Original Message-----
From: Pepelis, Aaron [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 1:27 PM
To: [EMAIL PROTECTED]
Subject: RE: memory leak... some one help, please!!

I'm running on win2K with 256MB RAM.
JDK 1.2.2
 
Well, in that main method, it's only loops 400 times, but I have another tool that writes to that BufferedOutputArea about... um.. 100 million times or so, appending about 750 characters per iteration.  What that class is suppose to do is cull a certain number of characters after a certain number of characters making is a buffered out put... any ideas?
aaron

Reply via email to