For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > January 2007 > Re: Perl/tk is crashing when trying to add a child to the tree with a position argume









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Perl/tk is crashing when trying to add a child to the tree with a position argume
Kevin Michael Vail

2007-01-25, 10:02 pm

In article <87zm88f7n7.fsf@biokovo.herceg.de>,
Slaven Rezic <slaven@rezic.de> wrote:

> roberts.cse@gmail.com writes:
>
>
> This is a known problem. I'll address it as soon as possible. In the
> meanwhile, rearranging the options, or, if possible, configure some of
> the options afterwards by using itemConfigure/entryconfigure may or
> may not help.


A workaround:

If the -at, -after, or -before are at the *end* of the list of options,
it will work.

The problem is down in the C code for HList (NewElement in tixHList.c).

copy:
if (n!=i) {
#if 0
/* FIXME */
objv[n] = objv[i];
objv[n+1] = objv[i+1];
#else
abort();
#endif

The #if 0/#else#/#endif weren't there in older versions. I'm not sure
why they were added but figured there was a good reason.
--
Kevin Michael Vail | I would rather have a mind opened by wonder
kevin@vaildc.net | than one closed by belief. -- Gerry Spence
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com