Re: LBAcache devel BUGFIX and improved release

Bart Oldeman <[email protected]> Mon, 11 Nov 2002 05:45:05 -0500 (EST)
Newsgroups gmane.os.freedos.devel
Message-ID <[email protected]>
On Mon, 11 Nov 2002, Eric Auer wrote:

>
> Hi, I have to re-release LBAcache-devel for some bugfixes.
>
> First bug: Probably due to a kernel bug. When I try to resize
> a MCB, the MCB just VANISHES !?!?

This is not a kernel bug, it's a DOS oddity.
By resizing the MCB of LBA cache instance 1 you also make it owned by the
PSP of "lbacache stop". Tom found out that this is necessary a while ago
while trying to get MSNet working. So when "lbacache stop" then exits, all
memory blocks it owns are freed, including the one that is resized!

The solution is to set the PSP to the "lbacache instance 1" PSP using
int21/ah=50, then resize the block, and then set the PSP back to the PSP
of "lbacache stop".

Good that this is a free day here :)

Bart