Thread: Memory Leak ?
View Single Post

   
  #10 (permalink)  
Old 04-16-2008, 03:02 AM
zhaoxin
 
Posts: n/a
Default Re: Memory Leak ?


>>>Could you tell me your connection string ?

>>
>>My connection string is like this (with ODBC default settings):
>>
>> SQLConnect(hdbc,(SQLCHAR*)szDSN, (SQLSMALLINT)strlen(szDSN),
>> (SQLCHAR*)szUID, (SQLSMALLINT)strlen(szUID),
>> (SQLCHAR*)szAuthStr, (SQLSMALLINT)strlen(szAuthStr));

>
>
> Hiroshi needs to know the value for szDSN.
>

ok,I see .
my connection string is below:
***************************
char szDSN[20];
char szUID[20];
char szAuthStr[20];
....
sprintf(szDSN,"postgre_8.02\0");
sprintf(szUID,"test\0");
sprintf(szAuthStr,"test\0");
....
***************************
is there some problem here ?


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply With Quote