RE: In .NET Compact Framework, can I free memory expli...
<variablename>.dispose() can be used however the garbage collection happens only when the garbage collector runs within in schedules. only difference is the memory is freed what ever it was allocated except the memory allocated to store object name is still in memory.
moreover its not advisable to call garbage collector to run explicitely as this becomes a performance overhead for the application as well as for the webserver itself.
RE: In .NET Compact Framework, can I free memory expli...
As far as i know there is not a particular way to realese memory in dotnet although there are destructor(dispose) but they dont invoke when object loose her scope it waits for garbage collector and if we talk about gc.collect() here also the work done by garbage collector
so we can say there is no way to realese meomry explicitly