>>>>> "Herbert" == Herbert  <[EMAIL PROTECTED]> writes:

Herbert> Jean-Marc Lasgouttes wrote:
>>  >>>>> "Herbert" == Herbert <[EMAIL PROTECTED]> writes:
>> 
Herbert> ok. I'll send you the lyx-file, which looks ok for me.
Herbert> Thanks in advance!
>>  This file loads fine for me, but purify tells me that we are
>> trying to free non-heap memory: What happens I guess is that LyX
>> ends up using the empty string more than 65535 times(!) and things
>> break. A *possible* solution would be to replace the line 275 of
>> src/LString.h unsigned short n; with something larger like unsigned
>> int n; <---------- !!!!!!!

Herbert> That is it!! Everything is ok now, the file loads fine.

Note that the increases LyX memory use and I do not know whether we
really want to do that in stock LyX. However, one could envision a
--with-big-files-support option to configure that does this change
(and maybe other things).

On the other hand, the LString class could try to test when this count
becomes too large and create a new string instance.

JMarc

Reply via email to