C (257/257)

From:
Date:24 Feb 2001 at 11:28:17
Subject:Re: Alloc/Free___ Chip memory fragmentation

Hi William
William Robinson wrote this on 20-Feb-01 at 15:51:17
>>> Problematic Task:
>>> implementing a double buffered intuition screen
>>>
>>> Problem:
>>> When the program executes, I get lots of errors at the end
>>> saying: "memory block at address: SOMEHEXNUMBER of size 0 not freed".
>>> and then another usually saying: "two other memory blocks of size <a
>>>> bytes not freed". So, I use the flush resources
>>
>> Before freeing the window you must restore the original buffer or it will
>> free
>> the one that is attached.
>>
>
> i'm using a jsut a screen... so it needs to have to original settings as
> when it was opened when freed?

If you`re using the ScrolViewPort() trick what I said was irrelevent. If your
using propper v39 multibuffering the you must restore the original screen
bitmap before freeing the screen or you`ll free the one that is attached
twice.



any persons, living or dead, are entirely coincidental.
Tim Hanson,
by the River,Canterbury, Kent.
Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/