possible TclTk problem with X11b3 ?
possible TclTk problem with X11b3 ?
- Subject: possible TclTk problem with X11b3 ?
- From: David Barnes <email@hidden>
- Date: Fri, 21 Mar 2003 11:12:48 +1100 (EST)
Hi folks,
Look I'm not sure if this is an X11b3 problem, but either way
maybe someone here might have an idea.
The following simple program works just fine on linux compiled
on 2.95.2, against TclTk 8.4.2 (the latest stable). It does
nothing much, but it runs successfully!
#include <stdio.h>
#include <tcl.h>
#include <tk.h>
int main() {
Tcl_Interp *itsInterp; /// Tcl interpreter
Tk_Window itsMainWindow; /// Tk root window
// Create Tcl interpreter
itsInterp = Tcl_CreateInterp();
// Create Tk window
itsMainWindow = Tk_CreateWindow(itsInterp,0,"TclTkWindow","");
return 0;
}
However, on Jaguar, with tcl tk 8.4.2 built into /usr/local with
"gcc_select 3", this program fails with a Bus Error. gdb shows:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x0b02d0c0 in Tk_CreateWindow ()
(gdb) backtrace
#0 0x0b02d0c0 in Tk_CreateWindow ()
#1 0x00001d60 in main (argc=1, argv=0xbffff670) at testk.c:15
#2 0x00001ac4 in _start (argc=1, argv=0xbffff670, envp=0xbffff678) at /SourceCache/Csu/Csu-45/crt.c:267
#3 0x00001944 in start ()
whether it's displaying locally on the Apple X11 beta 3, or on a
remote X display. This makes me think it might be nothing to do
with X11b3. I'm really not sure. Any pointers gratefully
received, even if someone can tell me the above code is "non-
standard" and I'm just lucky that it works on linux!
David.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.