Re: C# question: How do you delete a Grid object

Tech-Archive recommends: Fix windows errors by optimizing your registry




"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





.



Relevant Pages

  • Re: Cracking DES with C++ is faster than Java?
    ... > be accessed using relative locations. ... the (absolute) address of the memory allocated. ... access to the stack is ... Only, for starters, when you actually use a garbage collector. ...
    (comp.lang.java)
  • Re: Cracking DES with C++ is faster than Java?
    ... > be accessed using relative locations. ... the (absolute) address of the memory allocated. ... access to the stack is ... Only, for starters, when you actually use a garbage collector. ...
    (comp.lang.cpp)
  • Re: Cracking DES with C++ is faster than Java?
    ... > be accessed using relative locations. ... the (absolute) address of the memory allocated. ... access to the stack is ... Only, for starters, when you actually use a garbage collector. ...
    (sci.crypt)
  • Re: Register Allocators and Garbage Collectors
    ... A typical garbage collector would "scan" the stack of all ... active processes looking for values that "might be" pointers. ...
    (comp.compilers)
  • Re: Advanced C
    ... C++, and since there is no portable way to scan the stack, the code talking about scanning the stack for pointers must be non-portable (i.e. not standard C), and this is evidenced by the existence of hacks in the code for systems which are sloppy with their stack frames. ... a garbage collector cannot be written in standard C except as part of writing a complete virtual machine where you obviously have complete control over the memory handling of the virtual machine (e.g. if you are writing a JVM). ...
    (comp.lang.c)