系統在在 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
希望能幫到你!
廣告
資料結構
網路
關係資料庫管理系統
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP