in reply to Tk::Canvas->createLine max?

On Tk's internal function definition pTk/mTk/generic/tkCanvLine.c number of points is referenced as int so it should support 2^32 points.

In my netbook (linux-32 + Tk 804.029 + Perl v5.10.1) your code works out of the box, are you sure you are not running out of memory?

Replies are listed 'Best First'.
Re^2: Tk::Canvas->createLine max?
by stead (Initiate) on Aug 11, 2010 at 15:42 UTC

    Thanks for the reply! I don't think it's a memory problem because it's a 64-bit machine, OS and Perl, and has 128G of memory installed. My stop-gap fix was to limit plotting to one less than the number that causes the exit, and I am able to plot 100 of those shorter lines, but not even one line that has one more sample. But your perl and Tk are both more recent versions than mine, and that might be part of it.