Re: "using" vs "= null" and object lifetime

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 02/18/05


Date: Fri, 18 Feb 2005 02:58:49 -0000

Jon Skeet [C# MVP] <skeet@pobox.com> wrote:
> When compiled in non-debug mode (or in debug "pdb only" mode) the
> results are:
>
> After first collect
> Finalized
> After second collect
>
> When compiled in full debug mode, the results are:
> Finalized
> After first collect
> After second collect

Those should be the other way round, of course. Doh! Don't you just
hate it when you spot something wrong at the moment that the articles
just been posted?

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: Check if variable is defined
    ... Jon Skeet [C# MVP] wrote: ... Apologies - this is for local variables only. ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Obfuscation: Not just for protecting intellectual property
    ... Jon Skeet [C# MVP] wrote: ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.general)
  • Re: All Your Thread Are Belong to Us
    ... Jon Skeet [C# MVP] wrote: ... actually locking only one object at a time is merely a special case of ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.framework)
  • Re: encoding question
    ... Jon Skeet [C# MVP] wrote: ... *will* work for converting byte A3 into a pound sign. ... If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Reinstall using wceload - any way to avoid the question?
    ... I did not understand the "Your Company YourApplicationName" part of the ... "Jon Skeet [C# MVP]" wrote: ... > If replying to the group, please do not mail me too ...
    (microsoft.public.dotnet.framework.compactframework)