R
RA Scheltema
hi there,
the following is currently the problem:
SQLAllocHandle (SQL_HANDLE_STMT, hDBC, &hSTMT);
for (;
SQLExecDirect (hSTMT, (unsigned char*) "INSERT INTO [Test] ([Value])
VALUES (0)", SQL_NTS);
This loop leaks about 20 kb of memory every 100 times it is successfully
executed (on XP).
The table Test consists of two fields:
- an autonumbering
- a value (long)
I have already tested with allocating and freeing the statement handle
within the loop, but that seems to make it worse.
Did anyone encouter this previously ? Or is there any option I must set
before executing an INSERT TO statement?
regards,
richard
the following is currently the problem:
SQLAllocHandle (SQL_HANDLE_STMT, hDBC, &hSTMT);
for (;
SQLExecDirect (hSTMT, (unsigned char*) "INSERT INTO [Test] ([Value])
VALUES (0)", SQL_NTS);
This loop leaks about 20 kb of memory every 100 times it is successfully
executed (on XP).
The table Test consists of two fields:
- an autonumbering
- a value (long)
I have already tested with allocating and freeing the statement handle
within the loop, but that seems to make it worse.
Did anyone encouter this previously ? Or is there any option I must set
before executing an INSERT TO statement?
regards,
richard