Skip site navigation (1) Skip section navigation (2)

Re: Memory Leak ?

From: Ludek Finstrle <luf(at)pzkagis(dot)cz>
To: zhaoxin <zhaox(at)necas(dot)nec(dot)com(dot)cn>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Memory Leak ?
Date: 2006-06-09 11:20:05
Message-ID: 20060609112005.GD8153@soptik.pzkagis.cz (view raw or flat)
Thread:
Lists: pgsql-odbc
>    SQLAllocHandle (SQL_HANDLE_ENV, NULL, &henv);
>    SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);
>    SQLConnect (hDBC, szDSN, SQL_NTS, szUID, SQL_NTS, szPasswd, SQL_NTS);
>    SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt);
>    while( i < 10){
>       SQLPrepare(hstmt,(SQLCHAR*)szSql, SQL_NTS);
>       SQLBindParameter(......);
>       ......

Please could you send us the exact szSql and their BindParameters
so we don't have to make steps into dark? BTW table structure and
some sample data could help too.
It speeds up finding the problem.

>       SQLExecute(hstmt);
>       SQLFreeStmt(hstmt,SQL_RESET_PARAMS);
>    }
>    SQLEndTran(SQL_HANDLE_DBC,(SQLHDBC)hdbc, SQL_COMMIT);
>    SQLFreeStmt(hstmt, SQL_CLOSE);
>    SQLFreeHandle(SQL_HANDLE_STMT, hstmt);
>    SQLDisconnect(hdbc);
>    SQLFreeHandle(SQL_HANDLE_DBC, hdbc);

Regards,

Luf

In response to

Responses

pgsql-odbc by date

Next:From: Ludek FinstrleDate: 2006-06-09 11:25:19
Subject: Re: Access97/odbcUnicode/pgsql : unable to map text field
Previous:From: Bart SamwelDate: 2006-06-09 10:06:32
Subject: Re: Qustions about psqlODBC 08.02

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group