This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
No, we cant force garbage collector to do deallocate memory,only we can request garbage collector to do so(using System.gc() ), but there is no guarantee tht garbage collector deallocates memory when request is passed to it.
I don't think you can force garbage collection. you can do Runtime.getRuntime.gc() or System.gc(). this will instruct the virtual machine to garbage collect but it is not necessary that JVM will do it immediately....
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com