Hi,
2009-10-05 15:35 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * contrib/hbmemio/memio.c ! fixed memory corruption on hb_memfsTruncAt() call ! added required memory clear on hb_memfsTruncAt() call+ implemeted file handles different from internal structure pointers. Now memory FS file handle is index in file structure array. Thus,wrong memory FS is more safe for wrong external calls like: HB_FHANDLE hF = hb_memfsOpen( szFilename, iFlags ); hb_memfsClose( hF ); hb_memfsClose( hF );The second hb_memfsClose() call was wrongly re-releasing memory resources and causing memory corruption before memory handles were added.
I do not find unpredictable crashes any more in a complex application using MemIO driver. Please test and report if you have any problems with it.
Regards, Mindaugas _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
