I now doubt that the Borland 386 bug is really a Borland or 386 bug. I've found out that the zeroing of the code that calls Kernel() in FreeDOSmain() is done by DosMemFree() because at the time free() is called from DoInstall(), because a wong segment is passed to free(). This wrong segment is returned by DosMemAlloc when called by allocmem(). So I think that the bug is in DosMemAlloc() and happens only in LAST_FIT mode, which is set just before calling it in DoInstall().
Lucho
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel