[GRASS-dev] debugging nviz with TclTk 8.5 aqua

Michael Barton michael.barton at asu.edu
Tue Jul 22 23:21:10 EDT 2008


On Jul 22, 2008, at 6:49 PM, Glynn Clements wrote:

>
> Glynn Clements wrote:
>
>>> This actually produced some results.
>>
>>> (gdb) print ((struct TkWindowPrivate *) (window))
>>> $1 = (struct TkWindowPrivate *) 0x1d7c648
>>> (gdb) print ((struct TkWindowPrivate *) (window))->toplevel
>>> $2 = (struct TkWindowPrivate *) 0x28
>>
>> Ouch.
>>
>> Do you have more than one version of Tcl/Tk on your system? One
>> possibility is that the tkMacOSXInt.h header which Togl is using
>> doesn't match the library.
>>
>> Another possibility is that the structure packing could be affected  
>> by
>> compiler switches, so if Togl isn't compiled with the same switches  
>> as
>> the Tk library, it won't be accessing the fields correctly.
>>
>> Can you try:
>>
>> 	print *((struct TkWindowPrivate *) (window))
>
> Oh; while you're at it, can you post your tkMacOSXInt.h header?

I've put it at <http://www.public.asu.edu/~cmbarton/files/tcltk/>

This is for aqua and (I assume) for 8.5.

Michael


More information about the grass-dev mailing list