系統在在 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

 

希望能幫到你!

更新日期:2019 年 12 月 12 日

136 次觀看

開啟你的 職業生涯

透過完成課程取得認證

開始學習
廣告
© . All rights reserved.