Determine the amount of memory occupied by a data window

zhaozj2021-02-08  237

Determine the memory used by a DataWindow or DataStore It is often necessary to know how much memory a DataWindow or DataStore is using to prevent an "out of memory" error or to facilitate debugging. When the memory usage is known, processing of data or the retrieval of data can be stopped when a maximum limit is reached To determine the amount of virtual memory used by a DataWindow or DataStore, the Storage attribute is used It can be invoked from either of the two methods below..:

Dot NotationDw_Control.Object.dataWindow.Storage

Describedw_control.describe ("DataWindow.Storage")

Both Cases Return A String Value in bytes of Storage Used. Note - DW_CONTROL CAN REFER TO EIGER A DATAWINDOW OR DATASTORE AN EXAMPLE USAGE Would Be:

. Canceling a query that uses too much storage You can check this property in the script for the RetrieveRow event in the DataWindow control and cancel a query if it is consuming too much storage NOTE -. This example will inject performance degradation by increasing the retrieve time .

转载请注明原文地址:https://www.9cbs.com/read-2647.html

New Post(0)