[comp.sys.mac.programmer] Mac II Problems

gandreas@umn-d-ub.D.UMN.EDU (Glenn Andreas) (07/19/88)

There is this game that I have been working on for a while, and it works
perfectly on my Mac plus (system 6, tons of INITs).  It even works in
multifinder.  In a 96k partition (not a typo).  I've tried it on a friend SE
(running something less than up to date).  Works fine.  I bring it over to
another friends Mac II.  Problems.  Very strange problems.  For example, in
the intro dialog, I have a bunch of Icons around the side of it (as well as
in the instructions dialog and in the actual game).  One of the icons is
missing.  It just doesn't show up.  All the others are there just fine.
You go to play the game.  On the screen where that Icon is suppose to be
shown is junk (somehow GetIcon(1027) is returning NIL most likely).  At
first I thought that I was using a number that I shouldn't (the icons use to
start at ID 1, but I've since changed them to start at 1000, so all is good).
That icon just won't show up.  And what's more, if during the game you bring
up the about dialog twice, it crashes with ID=25 (He didn't have the
debugger running so I couldn't find out any more than that).  Also, if you
bring up the High Score dialog from within the about dialog, when the High
Score dialog goes away, some of the static text gets garbled.  He has 5 megs
and a bunch of INITs, running in 8 bit mode (I do do a few simple
SetForeColor() commands to add a little bit of color..).  Somehow it seems
that resource handles are getting invalidated or otherwise somethine strange
is munging up the memory.  And I'm not using anything fancy in terms of
routines (a few menu and window commands.  PlotIcon for showing icons.
GetIcon for getting their handles.  MoveTo's.  LineTo's.  DrawString.  Those
type of things).  And no matter what I use in the game, why does the dialog
manager not work correctly with icons in dialogs?  And yes, I am initing
everything.  Any clues?


p.s.  When I get this fixed, I will post it.  It's around 57k right now, so
it's not too big.  Lots of fun however.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= "When I was young, all I wanted was to be  | - gandreas@ub.d.umn.edu -    =
=  ruler of the universe.  Now that isn't    |   Glenn Andreas              =
=  enough" - Alex P. Keaton                  |                              =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=