Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15739

Re: Closing/Despose of JFrame

From Gene Wirchenko <genew@ocis.net>
Newsgroups comp.lang.java.programmer
Subject Re: Closing/Despose of JFrame
Date 2012-06-28 19:55 -0700
Organization A noiseless patient Spider
Message-ID <516qu75g5ipbvdjedcjb6okkckac2isbsn@4ax.com> (permalink)
References <5752befc-aca1-46f9-81d9-f3992bf756e7@googlegroups.com> <jshpac$3v7$1@dont-email.me> <bd012aeb-0dcf-44e3-bb8c-12dc70c8c473@googlegroups.com>

Show all headers | View raw


On Thu, 28 Jun 2012 09:47:55 -0700 (PDT), Lew <lewbloch@gmail.com>
wrote:

[snip]

>Read widely and carefully. There are some notable urban 
>legends out there, such as the advice to set all references 
>to 'null' when finished with them. There are specific times 
>to do so, such as when a collection such as a 'Stack' is 
>holding hidden references ("packratting", or the Java version 
>of a memory leak). Otherwise it's just superstition.

     Ah, not quite.  In Visual FoxPro, at least in some versions, the
releasing of an object or an array with object references would result
in a memory leak.  Setting to null was a workaround for that.  I would
not be surprised if it happened in some other languages, too. However,
I would not do it unless it were required.

Sincerely,

Gene Wirchenko

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Closing/Despose of JFrame Jesper Johnsen <jsjohnsen.dk@gmail.com> - 2012-06-28 06:38 -0700
  Re: Closing/Despose of JFrame markspace <-@.> - 2012-06-28 07:22 -0700
    Re: Closing/Despose of JFrame Lew <lewbloch@gmail.com> - 2012-06-28 09:47 -0700
      Re: Closing/Despose of JFrame Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-06-28 23:31 +0000
        Re: Closing/Despose of JFrame Lew <lewbloch@gmail.com> - 2012-06-28 17:42 -0700
      Re: Closing/Despose of JFrame Gene Wirchenko <genew@ocis.net> - 2012-06-28 19:55 -0700
        Re: Closing/Despose of JFrame Lew <lewbloch@gmail.com> - 2012-06-29 10:19 -0700
          Re: Closing/Despose of JFrame Gene Wirchenko <genew@ocis.net> - 2012-06-29 13:24 -0700
            Re: Closing/Despose of JFrame Lew <lewbloch@gmail.com> - 2012-06-29 13:36 -0700
      Re: Closing/Despose of JFrame Roedy Green <see_website@mindprod.com.invalid> - 2012-06-29 05:31 -0700
  Re: Closing/Despose of JFrame Lew <lewbloch@gmail.com> - 2012-06-28 12:46 -0700
  Re: Closing/Despose of JFrame "John B. Matthews" <nospam@nospam.invalid> - 2012-06-28 22:32 -0400

csiph-web