Re: Another problem to look at.

[email protected] Mon, 23 Apr 2012 16:35:02 -0400
Newsgroups gmane.mail.exmh.user
Message-ID <[email protected]>
On Mon, 23 Apr 2012 19:10:41 -0000, "Welch, Brent" said:

> Anyway, to try it, it would be something like this:
>
> foreach line [split $text \n] {
>   $exwin(ftext) insert end $text\n
> }

Probably want to move that up one level and replace

  ScanAddLines [read $input]

with

  foreach line [read $input $ftoc(scanWidth)] {
     ScanAddlines $line
  }

as I suspect that the problem is that 'read $input' is returning one honking
big string that's possibly several hundred K in size, which gives the memory
management routines indigestion.

Yes, I know scanWidth isn't guaranteed to be the right number of columns, but
it's probably close enough.

_______________________________________________
Exmh-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-users
signature.asc (application/pgp-signature, 865 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001

iQIVAwUBT5W89gdmEQWDXROgAQLLYxAAj1UCMxcoYHYtXQ0kbG0Dk4ONStg4twCh
UptcuOlLEqTATtrx7ly16NJnWs1NGYeoM2+giYvAEITAzd6kHzNHFHgK33ckSwlV
ADnCEV0hOb+UfiWm46AzPwbthcqZbt/c+9DJ1Cnq0n8OHKCnD5PB3+0FD76YBPHq
cxmDbWJJct8trZACiYXAeHvrmraHaFQEDo7RNBBRohuVklcjHWn1Cmc3Pcf0RuSA
BMyHWcPz3CjqRpOwHFFFoQJL73IpMRvDIb+2H9vryp3zUBuE7ks5HTENSs7WP8mh
Kgydr8pL1shLbsUH2JmwrGZ3glsaXt1lBWFyW7FLI9YJ15rFwCpPzlWKbjGo4nwv
2DfKUhi4PONQ/7iQ/xQ6IewG6j/tdCrfhL7crxImovKh4YVgUhPYIIY1vyyK2WLJ
m0YAUiDvXx0OVNCF1mT+mDhJtYjGJmmBEBJL6yeoevAs/h1CX5GM1mODXiB0TYy9
Q/zcrZF8Ht+9vLnJASUDNnPJYyl9SjuEY8vS5eIJk7tiU6wxj55Eko7hn0k9f00H
Yv0qGbu4EoTAbLU2y82brOYL3P2+ImcPLLLR4Q4YCkpcBa/ThELS1++hUd8Bj1HD
nCwEQZSknSU/qPcZtrJ326Q/4YoTokU35bNHS2zRVFVObC5kZbOznLHFFBHsofD7
oa2rH339wNA=
=ORpY
-----END PGP SIGNATURE-----