Re: About speed



It's not knowing what's going on and odd, erratic behaviors that
occassionaly occur. If I'm handling memory, I know exactly what's
going on.

Right. In an environment that is designed for this.


Which is why a lot of us are hesitant to enjoy DotNet. Control was removed
from our hands and we just have to hope the blackbox known as GC always
works (which it doesn't).


If GC is doing it and giving me reused objects, I see
strange behavior from time to time.

The cause might be that you want to "take over" for, or interfere with
GC..


GC should handle all that for me, right? I shouldn't ever have to "take
over" (and I don't) and yet I still see strange annomylies.

Uh.. I think your are not supposed to "free" it when GC is around.
Why do you free it at all? If you don't free it but instead create a
new instance, does this new instance carry over old variable values? I
guess not!


Memory. Even with GC you still need to behave responsibly with your memory.
I use "using()" all the time (which "frees" it in Delphi-way-of-thinking,
Dispose() for you DotNetters) but even then I see strange behaviors from
time to time.

-BKN


.



Relevant Pages

  • Re: [RFC 0/4] CONFIG_STABLE to switch off development checks
    ... The user did not request any memory so we wont give him ... That (to my surprise) caused some strange behavior of code and so we then ... caller would have to check to see how much it asked for before deciding ...
    (Linux-Kernel)
  • Re: C++ in the kernel
    ... M68K based STB with only 1.5 MB or flash and 1.5MB of RAM and no disks. ... What we got for that one engineers effort was a development environment ... STL is surprisingly damn useful. ... STL chunking of memory needs to be looked at, ...
    (freebsd-arch)
  • Re: Cobol data protection? Get a dog...
    ... I use win32 APIs to LOCK the memory heaps? ... This problem is universal and is not restricted to a COBOL caller. ... The submodule needs an address to do damage. ... You use the phrase 'open environment' I will let you define that so folks can ...
    (comp.lang.cobol)
  • Re: Cool visual illusion
    ... > the environment which is important to a machine ... states (memory). ... product of our histories is a load of crock. ... It could be said that learning itself is a reward. ...
    (comp.ai.philosophy)
  • Re: PPC Write to memory in Linux
    ... a user mode program is running in it own address space, it complicates ... programmers anywhere around and they won't deal with environment specific C ... adjust a C pointer value to access a specific memory address. ...
    (alt.lang.asm)