建立 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 日

瀏覽量:137

開啟您的 職業之旅

完成課程以獲得認證

開始
廣告
© . All rights reserved.