Blitz (2/640)

From:david white
Date:10 Aug 99 at 18:33:37
Subject:Violation of privilages (??!?)

Hi

Ok I'm totally lost now. My game, which I've had working for ages now has
suddenly decided to Guru every time I run it.

I've been using two 384x320 mildred bitmaps, (one for a Qblit replace
buffer), then c2ping one of them onto one of two normal 320x256 bitmaps for
double buffering. (The reason for the weird size of the chunky bitmap is to
give me a 32 pixel border all the way round, so the c2p operation is from
an offset of 32 pixels into the chunky bitmap. Make sense?).

Anyway I changed the size of the chunky bitmap to 704x320, to give me a
chunky superbitmap of 640x256 with a border, changed the settings in the
c2p window etc, and everything seems to be working perfectly... that is
until I try and free the planar bitmaps.

Using 'Free bitmap <blah>', then 'Freemem <blah>,<blah>' to get rid of the
planar bitmaps returns an error in the debugger :

GURU! : Privilage violation

then the computer locks up...

wtf?!?!?!?!?! This only seems to happen when the chunky bitmaps are
704x320, as changing them back to 384x320 works perfectly. I cant see how
changing the size of the CHUNKY bitmap can affect the freeing of the PLANAR
bitmap at all?

I've been through the program god knows how many times and everything seems
to add up... Exactly the right amount of memory is allocated and the same
freed..

Anyone got any Ideas???

Thanx in advance.

David

---------------------------------------------------------------------------------

==========================================================
= =
= David@tara-1.demon.co.uk =
= http://www.tara-1.demon.co.uk =
= =
= A1200T MC68060/50, 16Mb Ram, 2mb AGA, 1.2Gb HD, =
= 2x SCSI CD, 2x 880k floppy, 56k Modem =
= =
==========================================================

Current Projects:

Edgecrusher : Gothic style top down RPG / gore em up (20%)

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie