> Because of this I changed in the file buffer.C, the function
> getReferenceList. Instead of just add LStrings to the list variable, I
> use an ordered linked list to store the references, then I copy them
> to the list variable. It works fine. However, the program causes a
> Segmentation faut in the file lyx_cb.C, line 3711, in the follofing
> call:
>
> fl_addto_browser_chars(brow,refs.c_str())
>
> I checked the refs.c_str with gdb, and the value is correct. I don know
> if I making a bad use of the LString class.
I don't know what could cause this, but you could try to use "refs.copy()"
instead, although that will give you a memory leak.
I suspect the problem is not this line, but somewhere else. How does your
sorting routine look exactly?
For debugging, try to hard-code some values to the refs variable, and see if
that solves the seg-fault. If it does, you'll know that the problem indeed is
elsewhere.
> How can i subscribe to this mailing list?
The procedure is described on the LyX homepage. Follow the link to "Mailing
lists" from http://www.lyx.org. If that procedure does not work, please lets
us know.
Greets,
Asger