home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15069 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.7 KB  |  43 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sunic!psinntp!psinntp!newstand.syr.edu!greeny
  3. From: greeny@top.cis.syr.edu (J. S. Greenfield)
  4. Subject: Trouble with GetIconSuite
  5. Message-ID: <1992Sep6.191740.4727@newstand.syr.edu>
  6. Organization: Syracuse University, CIS Dept.
  7. Date: Sun, 6 Sep 92 19:17:40 EDT
  8. Lines: 33
  9.  
  10. I just started trying to use the System 7 icon drawing routines documented
  11. in Tech. Not #306 "Drawing Icons the System 7 Way."
  12.  
  13. I'm having trouble with GetIconSuite, however.  The call is supposed to
  14. create an empty icon family and then load the family with icons
  15. taken from an icon family in an open resource file.
  16.  
  17. The program bombs with a bus error (_StripAddress) when GetIconSuite is
  18. called under 32-bit addressing, however.  Under 24-bit addressing, it
  19. sometimes produces garbage when I draw the icon (using PlotIconSuite) and
  20. then a bus error when the Suite is disposed (using DisposIconSuite), and
  21. sometimes produces a bus error when GetIconSuite is called.
  22.  
  23. Since it doesn't look like a 32-bit dirty problem (and would be insane if
  24. it were, since this is System 7 stuff!), I guessed that GetIconSuite was not
  25. properly creating the empty icon family.  So I tried calling NewIconSuite
  26. first, which caused the bus errors to stop, but just produces a blank
  27. image when the PlotIconSuite is called (as though no icons are loaded).
  28.  
  29.  
  30. Has anybody been able to get these routines working?  Are there known bugs, or
  31. undocumented tricks that are necessary to use these functions (and in
  32. particular, GetIconSuite)?
  33.  
  34.  
  35. Thanks.
  36.  
  37.  
  38. -- 
  39. J. S. Greenfield                                         greeny@top.cis.syr.edu
  40. (I like to put 'greeny' here, 
  41. but my d*mn system wants a 
  42. *real* name!)                        "What's the difference between an orange?"
  43.