Re: ESQL/C problem with freeing sqlda structure
Posted in 1997
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
On 6 Sep 1997 03:42:29 GMT, steve53@earthlink.net wrote: >In <34105fdb.2443619@news.ac-copy.com>, mi_kramer@ac-copy.com (Michael Kramer) writes: > >>Debug assertion failed >>File: dbgheap.c >>Line: 1011 >>Expression: _CrtIsValidHeapPointer(pUserData) > >Sounds like something stomped on the heap. To find the culprit, try >freeing the sqlda right after it's allocated. That way you will know >when the heap got corrupted. Most likely some code overran the buffer >allocated right below the sqlda in memory. I tried this today, but still had no luck. Apparently the structure is allocated on a different heap (structure located at 8F6B30, run time heap _crtheap starts at D90000), so maybe thats the reason why the free fails. But I always thinked that a dll is sharing the heap with the program it is called from. >The statement that allocated the sqlda did complete without errors, >didn't it? Yes, I think so. But a closer look revealed that desc_occ and desc_next do not contain any valid content, so I have to look further. Thanks for your help, anyway. Regards, Michael Kramer