garbage-collection
What happens when we explicitly call Garbage collector method?
What happens when we explicitly call the Garbage collector method ? I have come across a method gc() which starts the 开发者_如何学Pythongarbage collection, how does this work?It tells the Garbage col[详细]
2023-04-10 21:03 分类:问答Is there any consequences of setting an reference to null in java?
If I have a reference pointing to some some java object, and do something like: myObject=null; Will the \"lost data\" of the old object be correctly freed by the JVM Garbage Collector? Something si[详细]
2023-04-10 15:58 分类:问答How do I solve this Javascript memory management error?
I have a picture array that is stored globally. Every second I choose a picture on the screen, fade it out, and replace it with a picture from the array. I use: $(\"#picture\" + 开发者_如何转开发pictu[详细]
2023-04-10 14:17 分类:问答Conservative garbage collector
I\'ve seen garbage collectors labelled as a lot of things- generational, etc. But I\'ve seen the Boehm GC labelled as \"conservative\". What exactly d开发者_高级运维oes that mean?A garbage collector m[详细]
2023-04-10 07:57 分类:问答Does this event-handling code cause a memory leak?
Is this a memory leak? private void Process() { for (; ; ) { // local variable RemoteClient remoteClient = new RemoteClient(..);[详细]
2023-04-10 07:46 分类:问答Can this code cause a managed heap corruption?
I\'m trying to debug a crash that happens in our application during garbage collection and looking at the code I found two related pieces of code that, if not the cause of the problem, are at least su[详细]
2023-04-10 07:15 分类:问答Is there a way to run some code as an object is being destroyed?
In C# I know that my objects are garbage collected when they go out of scope and there are no more pointers/references to it. Is there a way to run some开发者_StackOverflow中文版 custom code when this[详细]
2023-04-10 06:54 分类:问答C# Garbage collection
Say we have: public void foo() { someRefType test = new someRefType (); test开发者_JAVA百科 = new someRefType ();[详细]
2023-04-10 03:56 分类:问答Strange behaviour of C# windows service while >90% of RAM used
for some time I was trying to debug my algorithm that synchronizes data between two databases. Everything worked ok for a few months of everyday use and recently strange things started to happen eg:[详细]
2023-04-10 03:35 分类:问答Garbage collection and property syntax
I have a class that needs information from an xml file. I have another class which is constructed to meet that need. Once the information required is in the first class I want the xml reader to be gar[详细]
2023-04-09 17:17 分类:问答