建立 SAP-Delphi 整合專案的連線時,系統記憶體耗盡
釋放物件時,請務必將查詢物件設定為 null。將其設定為 null 時,它一定會釋放記憶體。但範圍也會發揮作用,所以請確保它是此過程的區域性範圍。
示例
請參閱以下示例片段以獲取參考
myFunction := TSAPFunctions.Create;
myFunction.Connection := FConnection;
myFunction.RemoveAll;
myQuery := mySAPFunction.Add('interface here');
myQuery.Call;
myQuery := null; // will clear the memory
希望以上內容對您有所幫助!
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
安卓
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP