Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Pro*C problem: memory leak
Hello everybody!
I have a memory leak problem when proceeding to UPDATE statements. The problem occurs when I use host variables, but does not occur when I use hardcoded values.
I use Pro*C version 8.0.4.0.0 and Borland C++5.01
In the example below the memory leak problem does not occur when replacing host variables with fixed values
EXEC SQL BEGIN DECLARE SECTION;
VARCHAR tidFQ[9]; VARCHAR partition[2];
for (long i = 0 ; i < 100000 ; i++)
{
EXEC SQL UPDATE FORMAT_QUEUE SET EVENTID = '007' WHERE TID = :tidFQ AND PARTITION = :partition; if (sqlca.sqlcode<0) { cout << "A problem occured"; } EXEC SQL COMMIT WORK; cout << i << endl;
Any hint would help.
Thanks! Received on Mon Feb 14 2000 - 09:53:36 CST
![]() |
![]() |