RE: Freeing an sqlda structure crashes Windows Vista
Posted in 2008
> Date: Fri, 11 Jul 2008 00:34:12 -0500> From: gerardo.santana@gmail.com> To: informix-list@iiug.org> Subject: Freeing an sqlda structure crashes Windows Vista> > Client:> * Windows Vista> * Informix CSDK 3.00.TC3> > Server:> * Informix 11.10.UC1> > I'm using free() to free memory allocated by DESCRIBE ... INTO, and> not SqlFreeMem. It wasn't a problem on Windows XP. I'm not using the> multi-threaded library (well, I mean, I'm not using the -thread flag,> is there a difference?[1]).> > But on Windows Vista, my ESQL/C program is crashing in free().> Changing free() with SqlFreeMem() solves the problem.> > According to the manual [2] I should not be experiencing crashes:> > "If your application is running on a Windows operating system and> using the multi-threaded library, then you must use SqlFreeMem() when> freeing memory that was allocated by the ESQL/C libraries. If you> instead use free() you will not get an error but the memory will not> be freed"> > What am I missing?, anybody care to explain, please? An updated manual? You have the answer already use the SlqFreeMem(). _________________________________________________________________ Need to know now? Get instant answers with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_messenger_072008