Dispose( ) method
(Windows only; GUI for .NET only)Cleans up resources associated with a BindingSource object before .NET releases it from memory.
Return type: VOID
Access: PUBLIC
Applies to: Progress.Data.BindingSource class
Call this method before you delete the object reference to a BindingSource instance.
Use this method especially when a BindingSource has a ProDataSet as its data source. For each row that is expanded in a hierarchical grid for a ProDataSet, the BindingSource creates a separate query. This can potentially consume a lot of memory. The ABL Virtual Machine (AVM) automatically deletes these queries when you delete the ProDataSet. However, if you want to maintain the ProDataSet beyond the scope of the BindingSource, calling the Dispose( ) method frees all of the memory for these queries without your having to delete the ProDataSet that is associated with them.
OpenEdge Release 10.2B
|