How to free up memory in C# applications?
-
Hi everybody, I work with big XML files and i want to free up the memory after a have finished working with one file. If i set the reference of the XmlDocument to null the memory will be free from the GC. But how can i free the memory immediately when i don't need any more the reference? Thanks.
-
Hi everybody, I work with big XML files and i want to free up the memory after a have finished working with one file. If i set the reference of the XmlDocument to null the memory will be free from the GC. But how can i free the memory immediately when i don't need any more the reference? Thanks.
-
Hi everybody, I work with big XML files and i want to free up the memory after a have finished working with one file. If i set the reference of the XmlDocument to null the memory will be free from the GC. But how can i free the memory immediately when i don't need any more the reference? Thanks.
how big are these files ? You'd have to force GC, which is usually a bad idea, and can mess up memory management in general in your app. XML files are just text, there's nothing to Dispose.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hi everybody, I work with big XML files and i want to free up the memory after a have finished working with one file. If i set the reference of the XmlDocument to null the memory will be free from the GC. But how can i free the memory immediately when i don't need any more the reference? Thanks.
-
Hi everybody, I work with big XML files and i want to free up the memory after a have finished working with one file. If i set the reference of the XmlDocument to null the memory will be free from the GC. But how can i free the memory immediately when i don't need any more the reference? Thanks.