Re: C# question: How do you delete a Grid object
- From: "Liz" <liz@xxxxxxxxxxxxxxx>
- Date: Sat, 10 Nov 2007 20:25:02 -0600
"Alun Harford" <devnull@xxxxxxxxxxxxxxxxx> wrote in message
news:ODUsTp9IIHA.2100@xxxxxxxxxxxxxxxxxxxxxxx
Liz wrote:
You always have to wait for the garbage collector to come around;
That's not entirely true. You can use stackalloc to allocate memory on the
stack (away from the garbage collector).
It's good if you frequently need to allocate moderately large arrays of
objects. Garbage collection hurts in that situation.
glad you mentioned stackalloc, Alun ... it is useful and too often ignored
(or so it seems); so I'll rephrase and say you always have to wait for the
GC where the GC is capable of doing anything ... certainly the OP has no
choice but to wait for it with respect to his dynamically instantiated grids
.
- Follow-Ups:
- Re: C# question: How do you delete a Grid object
- From: Nicholas Paldino [.NET/C# MVP]
- Re: C# question: How do you delete a Grid object
- References:
- C# question: How do you delete a Grid object
- From: dongarbage
- Re: C# question: How do you delete a Grid object
- From: Liz
- Re: C# question: How do you delete a Grid object
- From: Alun Harford
- C# question: How do you delete a Grid object
- Prev by Date: Re: HttpContext.Current returns null
- Next by Date: Re: Regular expression for validating [GrandTotal]=4*[TotalCharges]+[currentCharges]+2
- Previous by thread: Re: C# question: How do you delete a Grid object
- Next by thread: Re: C# question: How do you delete a Grid object
- Index(es):
Relevant Pages
|