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