Dear Phyllis,
> #2 0x001bd7e8 in XAllocNamedColor ()
> #3 0x0078d000 in CvtStringToPixel (args=0x0, nargs=0xbfffe94c,
> fromVal=0xbfffe93c, toVal=0xbfffe944) at xcircuit.c:739
> #4 0x0078d148 in xc_alloccolor (name=0x79e318 "Orange2") at
> xcircuit.c:775
Looking at the code here, the only thing that I can see that could
have gone wrong is for the (xcircuit routine) CvtStringToPixel() to
be passing an incorrect colormap value to XAllocNamedColor(). Only
this is *supposed* to be pretty solid code---tclxcircuit.c line 9194
calls Tk_MapWindow() which is supposed to force the X window to be
mapped, and line 9206 queries Tk for the colormap. XCircuit crashes
shortly thereafter at line 9223.
This would have to be confirmed by running gdb on xcircexec,
setting a breakpoint on CvtStringToPixel, and then finding out what
is the value of (global variable) cmap. Likely this is the result of
some mismatch between the way the Mac does graphics natively and the
attempt to run something that looks like a real X server on top of
it. It may be reasonably easy to put in some code exception for Mac
OS, but I'll have to know if "cval" is set to some obvious error code
(like zero), and/or if it will be necessary for xcircuit to always
install its own colormap. If all else fails, you might try adding
the line
installowncmap();
at line 9222 of tclxcircuit.c. On the whole, I would expect this to
make things worse rather than better, but you never know. . .
Regards,
Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: [EMAIL PROTECTED] |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-9364 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev