[comp.sys.mac.programmer] color2index

dorner@pequod.cso.uiuc.edu (Steve Dorner) (01/11/90)

I have absolutely no use for color, and I make no color quickdraw calls
in my program.  Every once in a while, my program dies with an
unimplemented instruction.  Stack retrace (SADE) shows three things in
the stack; <main> furthest back (not "main", but "<main>"), then Color2Index,
then a bad frame.  Color2Index JSR's to (A0); A0 must have contained
garbage.

To make things worse, the bug is not repeatable.  It happens every so often,
but NEVER when I'm trying to make it happen.

Anybody have any clues for me as to:

a) Who is calling Color2Index?  It certainly isn't me.
b) Why is Color2Index is crashing?

I really don't want to have to dig through the system trying to track this
down, especially since knowledge about color quickdraw is just about the
last thing I need, ranking right after a visit to the proctologist.  If
anyone could point me in a reasonable direction, I'd be grateful.

I'm using MPW C 3.0 and an SE/30, if that matters  Only INIT of real interest
is Moire 3.0, which runs happily on after the crash.
-- 
Steve Dorner, U of Illinois Computing Services Office
Internet: s-dorner@uiuc.edu  UUCP: {convex,uunet}!uiucuxc!dorner
IfUMust:  (217) 244-1765