about static variable
- From: "George2 via JavaKB.com" <u14844@uwe>
- Date: Mon, 31 Oct 2005 02:48:47 GMT
Hello everyone,
I have heard that static variable will make the program consume very much
memory. It is because garbage collector (GC) will not work on static variable.
Is that correct?
I am also wondering when does the memory space of a static variable is
allocated, during compile or during runtime?
thanks in advance,
George
--
Message posted via
http://www.javakb.com
.
Relevant Pages
- Re: CLOS object clean-up
... The destructor is called when the AI controlled NPC ... and therefore causes the mesh (elsewhere in memory) to ragdoll. ... Your best bet is to actually model the ``death'' of the AI controller ... And then you add a garbage collector to C++ ... (comp.lang.lisp) - Re: Memory Cleanup
... Calling GC.Collect is not the ... // The total memory has not gone down. ... reference counters, and nothing happens when objects go out of scope. ... objects just remain in memory waiting for the garbage collector to remove ... (microsoft.public.dotnet.languages.csharp) - Re: How to track memory usage?
... the IE memory leak issue is real, ... And JScript in IE allows the garbage collector to be explicitly ... but then removes all references to that object ... "Break Circular References" - examines all DIVs and removes ... (comp.lang.javascript) - Re: FileStream.Close() & GarbageCollection - Memory Leak Question
... There are two, that I can think of, major sources of memory leaks in an application. ... While you don't have to explicitly call code to free memory allocated in a managed world, you still have to make all the information you got about the lifetime for your data available to the garbage collector. ... stream and releases any resources ... Dispose/Close typically disposes of "scarce" resources, like handles, files, sockets. ... (microsoft.public.dotnet.languages.csharp) - Re: Bad Performance In C# Project
... And the program slows down. ... > My opinion is that the destruction of typed dataset's in the memory takes ... >>> memory and destruction of these tables are left to Garbage Collector. ... (microsoft.public.dotnet.framework.adonet) |
|