awt frames leak memory

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 1.1.3, 1.1.7, 1.2.2
    • Component/s: client-libs
    • x86, sparc
    • solaris_2.5.1, windows_nt



      Name: diC59631 Date: 12/16/97


      We realised that the garbage collector on different virtual machines does not work
      correctly with AWT-classes under Windows NT 4.0.
      Memory recources occupied from AWT-classes are not totally recollected.

      Following code fragment reproduces this error with the frame class. Running this
      code fragment increases the size of the Virtual memory and the size of memory
      address-space of the virtual machine with several MBs!!!
      It is easy to lock the whole System with this more complex frames.

      for (int i=0;i<1000;i++)
      {
          {
              Frame Obj=(new Frame());
              Obj=(new Frame());
              Obj.reshape(50,100,200,200);
              Obj.show();
              Obj.hide();
              Obj.dispose();
           }
           System.gc();
      };

      We tried several virtual machines from different vendors, but none worked. including:

      Java Workshop 1.0
      Symantec Visual Cafe Pro Version 1.0 till 1.0e
      Symantec Visual Cafe for Java Enterpr. Edition based on JDK 1.1.3
      Netscape Navigator 3.0
      Internet Explorer 3.02 und 4.0
      (Review ID: 19451)
      ======================================================================

            Assignee:
            Uwe Uwe (Inactive)
            Reporter:
            Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: