From: | Curt Esser |
Date: | 11 Aug 99 at 12:58:59 |
Subject: | Re: Violation of privilages (??!?) |
Hi David
On 11-Aug-99, David McMinn wrote:
>> What exactly are you FreeMem'ing? Is it some additional memory you
>> allocated?
>> The bitmap's memory is automatically freed when you FreeBitMap - if you
>> are trying to free the same memory again, you will definately get a
>> GURU...
>
> I think a lot of Mildred stuff relies on you allocating some memory then
> cludging it into a BitMap so that you can use interleaved bitmaps. So
> freeing it would be OK if you allocated it first. Unless Free BitMap is
> bugged.
If that's the case I think the problem is that he is trying to free the same
memory twice - first with the FreeBitMap, then again with the FreeMem
FreeBitMap is meant to free the memory used by the BitMap - so if the BitMap
is cludged to use memory you have allocated, you shouldn't Free both the
BitMap and the allocated memory. Just one or the other (take your pick)
>
> But Curt's right, you should make sure that you are the one allocating the
> memory you are freeing.
And also never ever try to free the same memory twice ;)
Later...
Yours electronically,
Curt Esser
camge@ix.netcom.com
http://members.xoom.com/Curt_Esser/
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie