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: (view raw, whole thread or download thread mbox)
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);
>    }
>    SQLFreeStmt(hstmt, SQL_CLOSE);
>    SQLFreeHandle(SQL_HANDLE_STMT, hstmt);
>    SQLDisconnect(hdbc);
>    SQLFreeHandle(SQL_HANDLE_DBC, hdbc);



In response to


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-2017 The PostgreSQL Global Development Group