From: Vinay S. <Vin...@ef...> - 2007-03-05 06:58:05
|
Hi Vladimir, > See: > 1) memory leak > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > while( 1 ) > { > int ret =3D SQLAllocHandle (SQL_HANDLE_ENV, NULL, &env); > . . . > ret =3D SQLAllocHandle (SQL_HANDLE_DBC, env, &connection); > . . . > ret =3D SQLDriverConnect( connection, hWnd, > (UCHAR*) connectString, SQL_NTS, > buffer, sizeof (buffer), &bufferLength, > SQL_DRIVER_NOPROMPT); > > . . . > ret =3D SQLDisconnect (connection); > . . . > ret =3D SQLFreeHandle (SQL_HANDLE_DBC, connection); > . . . > ret =3D SQLFreeHandle (SQL_HANDLE_ENV, env); } = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I don't see any memory leak in this.=20 And also why I don't get crash with sysdba? Is there any user privilege issues? Also my actual application does not connect to Firebird server so many = times in the loop. It just tries once during startup and crashes. Thanks, Vinay |