Subject | Re: Missing info on FB2 deprecated API functions |
---|---|
Author | Glebas |
Post date | 2006-11-21T16:45:13Z |
--- In firebird-support@yahoogroups.com, "Ann W. Harrison"
<aharrison@...> wrote:
::isc_modify_dpb( &dpb, &dpblen, isc_dpb_user_name, username,
(short)strlen(username) );
::isc_modify_dpb( &dpb, &dpblen, isc_dpb_password, password,
(short)strlen(password) );
<aharrison@...> wrote:
>Is it correct to do this: ?
> The recommended procedure is that you allocate your own
> dpb and expand it following the normal rules for allocating
> and releasing structures in your programming language. The
> existing call has a memory leak and can cause more problems.
> It was designed as a service routine for gpre which uses it
> in a very restricted way and is safe. It should not have
> been generalized.
::isc_modify_dpb( &dpb, &dpblen, isc_dpb_user_name, username,
(short)strlen(username) );
::isc_modify_dpb( &dpb, &dpblen, isc_dpb_password, password,
(short)strlen(password) );
>
>
> Regards,
>
>
> An
>