Home > Back-end > The last time ask ADO cause memory leak problem
The last time ask ADO cause memory leak problem
Time:10-02
Last questions ADO lead to memory leaks, looking for solutions, Can confirm that at the time of use ADO to open the database, even if the CLOSE database in time, memory will increase some, not completely released, which is memory leaks, Saw many posts online, such a person is more, this problem is less solution, said in the way to disconnect from the database, for a period of time in the connection, the purpose is to make the system have the time or the memory, but the test is invalid, and ADO version upgrade, but I have is the latest version of ADO, it's still a memory leak, Finally: certainly no problem, just open the ADO database of these statements a logout, memory leaks immediately disappear,
Excuse me, the warrior are: are there any other solutions? DELPHI ADO can also be used if no other way to access the database?
CodePudding user response:
Can try control data sets, such as: UiDAC, etc.
CodePudding user response:
Has been using ado to connect to the database, and found no memory leaks cause the program can not run normally,
CodePudding user response:
Only in the frequent use of ado database will appear only when memory leaks, so generally save the data of what you don't see what problem, especially the long running open close the database, the problem is exposed,
CodePudding user response:
Do not go away this time, implore you,,,
CodePudding user response:
You repeatedly opening and closing, such as a 1000 or 10000, observe whether memory usage is rising, if yes, can prove there is memory leak, open only one or two, there is no point On the issue of the fragments of memory, is...
CodePudding user response:
Is open 1000 or 10000, observe memory continue to rise, there is a memory leak
CodePudding user response:
Please the original poster is a database connection? I have a memory leak test is found connecting Oracle, MS SQL found no
But if the upgrade ADO version should be able to solve the problem of Oracle memory leaks, but I haven't verify, because high version
The ADO to install in the Server version
CodePudding user response:
My connection is ACCESS, however, should have nothing to do with what the database, but and ADO itself,