Release Unmanaged Resources of the Workbook with Golang via C++
Contents
[
Hide
]
Aspose.Cells provides the Workbook.Dispose() method to release the unmanaged resources of the Workbook object. The Dispose pattern is used only for objects that access unmanaged resources, such as file and pipe handles, registry handles, wait handles, or pointers to blocks of unmanaged memory. This is because the garbage collector is very efficient at reclaiming unused managed objects, but it is unable to reclaim unmanaged objects.
The Workbook object now implements the IDisposable interface, which has a single method Dispose(). You can either call the Workbook.Dispose() method directly, or use the using statement to have this method called automatically.