From: Matthieu Q. <Mat...@lo...> - 2004-03-19 00:20:35
|
> set a breakpoint in gdb on TkMacOSXXPutPixel() (tk/macosx/ > tkMacOSXXStubs.c) and check that > - image->data is not NULL > - image->data is a calid quickdraw port > (via gdb function 'call (void) QDDebugPrintPortInfo(image- >> data)') > - x,y are valid coordinates in the image > - cpix is a valid color value > OK I forgot to setenv DYLD_IMAGE_SUFFIX _debug Here is what I got : x =3D 0 y =3D 0 cPix : red =3D green =3D blue =3D 255 image =3D (XImage *) 0xb30b88 image->data =3D 0xb44408 "=FF=FF=FF=FF" BUT : (gdb) call (void) QDDebugPrintPortInfo(image->data) Program received signal EXC_BAD_ACCESS, Could not access memory. 0xb97213f4 in GetPortHiliteColor () Sorry for my previous silly messages... I am learning from my mistakes. Matthieu |