We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to release aspose objects

Hi,

Guide me how to release the aspose objects after the work is done.Currently there is no Close or Dispose methods for License as well as worker objects like Document Class, Excel Class etc. Is it possible to release the object to assign null value to that objetcs.

Thanks,

Dhivya

Hi,

The component (Aspose.Cells for .NET) does not necessarily require really to free up the resources for the processes as the component is already optimized to do so automatically. When objects are no more useful in the processes, GC would collect and release the memory occupied by the objects. For your information, Aspose.Cells for .NET is a pure .NET component (created in managed .NET code) and it relies on .NET garbage collector (GC) to allocate and free the memory for the different processes, although you may try to also use GC.Collect() or set Workbook to null in some cases for your need.

Thank you.