home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7201 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

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