Artifacts Associated With Ticket 468098ffffffffffffffffffffffffffffffffff
Ticket change [5fcfb4073a] (rid 115883) by nobody on 2001-10-04 22:32:18:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The now obsolete function Tk_GetBitmapFromData, if used, will corrupt the bitmap hashtable causing much grief later on... This problem appears to be present in 8.4 as well. To put your mind at ease, after fixing this bug in Tk, I then went into my code and removed Tk_GetBitmapFromData, replacing it with Tk_DefineBitmap. If you don't fix the bug, then remove the function altogether. Thanks, -Brian The following fixes the problem: $ cvs diff -p tkBitmap.c Index: tkBitmap.c =================================================================== RCS file: /cvsroot/tktoolkit/tk/generic/tkBitmap.c,v retrieving revision 1.7.12.1 diff -p -r1.7.12.1 tkBitmap.c *** tkBitmap.c 2001/04/04 07:57:16 1.7.12.1 --- tkBitmap.c 2001/10/04 22:15:41 *************** Tk_GetBitmapFromData(interp, tkwin, sour *** 818,825 **** char string[16 + TCL_INTEGER_SPACE]; char *name; TkDisplay *dispPtr = ((TkWindow *) tkwin)->dispPtr; ! BitmapInit(dispPtr); nameKey.source = source; nameKey.width = width; --- 818,829 ---- char string[16 + TCL_INTEGER_SPACE]; char *name; TkDisplay *dispPtr = ((TkWindow *) tkwin)->dispPtr; + ThreadSpecificData *tsdPtr = (ThreadSpecificData *) + Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); ! if (!tsdPtr->initialized) { ! BitmapInit(dispPtr); ! } nameKey.source = source; nameKey.width = width; - foundin initialized to: "obsolete: 8.3.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "Tk_GetBitmapFromData broken"
- type initialized to: "Bug"
Ticket change [e819068edb] (rid 104591) by dgp on 2001-10-06 11:24:44:
- assignee changed to: "dgp"
- closedate changed to: "2001-10-06T04:24:44"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 This report concerns the interface of the Tk extension. It should be registered with the tktoolkit project, not the tcl project.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- subsystem changed to: "None"
- username: "dgp"
Ticket change [d961e195b7] (rid 107600) by bgriffin on 2001-10-11 06:55:03:
- icomment:
Logged In: YES user_id=22949 So, should I reenter this report under tktoolkit project? By the way, this fix did not completely resolve the problem, but I didn't determine why. -Brian
- login: "bgriffin"
- mimetype: "text/plain"
- username: "bgriffin"
- icomment:
Ticket change [0d32bd86cc] (rid 114317) by dgp on 2001-10-11 23:20:48:
- closedate changed to: "2001-10-11T16:20:48"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Yes, please. If you register this report with the tktoolkit project, then we can assign it to the appropriate maintainter for review. Sorry about the burden, but SF no longer provides a means to transfer a report from one project to another.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"