Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Norbert Meier — — source: Informix-list mailing list archive (1991-1998)
Michael Kramer wrote:
> ...
> trying to free a sqlda structure allocated by Informix I get the
> following exception:
>
> Debug assertion failed
> File: dbgheap.c
> Line: 1011
> Expression: _CrtIsValidHeapPointer(pUserData)
that's just what I got sometime ago (with VC++ 4).
It is caused by alloc() (in isqlt07c) and free() (in your app) using
different memory management structures.
Use 'SqlFreeMem' with FreeType 'SQLDA_FREE' for freeing
Informix-allocated
sqlda structures.
Assume the following declarations (from the ESQL 5 header;
they are missing in the ESQL 7 header, but nevertheless
the function is in the library):
extern void SqlFreeMem(void * MemAddr, int FreeType);
/* defines for SqlFreeMem, FreeType */
#define CURSOR_FREE 1
#define STRING_FREE 2
#define SQLDA_FREE 3
#define CONN_FREE 4
--
Norbert Meier | Tel. : (+49) 5251 8-14926
Siemens Nixdorf AG, ASW C8 | EMail: meier.pad@sni.de
33094 Paderborn
Germany
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.