Re: general performance question



Lasse Reichstein Nielsen wrote:
Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx> writes:

Mike Schilling wrote:
...
if (condition)
{
LargeObject lg = new LargeObject();
lg.doStuff()
// See discussion below
}

I don't think that is true. If you create an Object in a loop and
then reassign another Object to the same reference in the loop, the
first Object is eligible for garbage collection (and will be).

The previous poster didn't mention loops, merely a nested block
scope.
For a loop, the value set in the last iteration also leaks the
block.

/L

How can it if the reference is created in the block?

--

Knute Johnson
email s/nospam/knute/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.



Relevant Pages

  • Re: How to add a reference?
    ... and some example (aspx and vb) pages. ... a reference to the .dll, and it shows up under references. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to add a reference?
    ... a reference to the .dll, and it shows up under references. ... Protected obPost As Postback '<--error is here. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: New Technical Trail Pictorial
    ... it's totally in the official loop. ... There's a higher trail that ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (alt.mountain-bike)
  • Re: borgs unite! Demand facts, facts, facts!
    ... reference is Krooglish. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (rec.audio.opinion)
  • Re: How to add a reference?
    ... It includes a .dll, and some example pages. ... a reference to the .dll, and it shows up under references. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (microsoft.public.dotnet.framework.aspnet)