Using ZQuery component with different queries. Same ZQurey component is used with different queries by clearing and reloading the SQL property. This causes a memory leak. In Bcb4, can be reproduced with the following code:
ZQuery1->SQL->Add("INSERT INTO `logopak`.`logtest2` VALUES (NULL, CURRENT_TIMESTAMP, 'Abcdef', 123, 123.456)");
It's not necessary to make a connection to the database or open/ execute the query, just setting the SQL property is enough.
P.s. For best results, make a loop to add 100 (or more) strings to the SQL property when a push-button is activated...
Mr Frustrated (alias Jon)
Forum related to version 6.1.5 of ZeosLib's DBOs
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest