home *** CD-ROM | disk | FTP | other *** search
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4m)
- MIME-Version: 1.0
- Subject: Re: BitMap problem
- References: <4kfesg$sqe@sinsen.sn.no> <1996Apr10.104208.28803@imada.ou.dk> <4kgqs9$clr@serpens.rhein.de>
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- Path: imada.ou.dk!breese
- From: breese@imada.ou.dk (Bjorn Reese)
- Message-ID: <1996Apr11.153514.2002@imada.ou.dk>
- Sender: news@imada.ou.dk
- Nntp-Posting-Host: gounod.imada.ou.dk
- Organization: Dept. of Math. & Computer Science, Odense University, Denmark
- Date: Thu, 11 Apr 1996 15:35:14 GMT
- Newsgroups: comp.sys.amiga.programmer
-
- Michael van Elst wrote:
- >
- > breese@imada.ou.dk (Bjorn Reese) writes:
- >
- > >Ilan Sharoni wrote:
- > >> I AllocBitMap(), link it to a RastPort, Text() a string to the
- > >> bitmap (should dump it to the printer latter), FreeBitMap() it,
- >
- > >You must remove the link in the RastPort before freeing the bitmap.
- >
- > What for and how would you do that ? :)
-
- It's a secret :)
-
- Well, I guess that I assumed that the RastPort was that of a
- window. For instance if you do double-buffering and close the
- window with the wrong BitMap (the one(s) you allocated manually)
- linked to the RastPort, the OS gets annoyed and decides to annoy
- you with gurus. Anyways, it seems to boil down to how the RastPort
- is allocated and freed.
-
- How it should be unlinked? "myRastPort->BitMap = NULL;" seems
- reasonable to me :)
-
- --
- Bjorn Reese Email: breese@imada.ou.dk
- Odense University, Denmark URL: http://www.imada.ou.dk/~breese
-
- "It's getting late in the game to show any pride or shame" - Marillion
-