[QScintilla] QScintilla2 crashing

Vadim Peretokin vadim.peretokin at mudlet.org
Tue Sep 16 16:45:00 BST 2008


Hi,

I've searched the mailing list to see if someone else ran into this
problem but I couldn't find anything. I'm including QScintilla2 (via
Qt Designer module) in my application, and am using a Lua lexer for
highlighting to begin with.

QScintilla runs into this assertion:

Assertion [(position >= 0) && (position <= lengthBody)] failed at
../src/SplitVector.h 155

When I paste something into it the second time. The lexer is added
with this code:

setupUi(this);
mpLuaLexer = new QsciLexerLua();
script_scintilla->setLexer( mpLuaLexer );

Is there anything that I'm missing out? I couldn't find an example
application that does syntax highlighting, so I probably messed up the
initialization...


More information about the QScintilla mailing list