Click here to Skip to main content
14,875,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i have a question regard to the FixedDocumentSequence object.
I am displaying the sequence in a documentviewer that works fine.
My problem is when i set the sequence to null (FixedSequence = null;)
the framework does not free the allocated memory. How can I dispose
this object, or how can i free my memory?

Thanks in advance,
Manu
Posted
Comments
ZurdoDev 13-Apr-12 14:37pm
   
How can you tell it has not freed the memory? Remember, .Net uses a garbage collector and when there are no more pointers to an object it will decide when to release the memory.

1 solution

In addition to ryanb31 comment, you should only control garbage collector manually in really specified cases (where you set your application in a different state, i.e doing image processing of large file).

You'll need to collect collected items from garbage collector which is another overhead and has to be avoided for normal cases.

Control the GC:
http://msdn.microsoft.com/de-de/library/system.gc.aspx[^]


Regards
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900