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