[QScintilla] QScintilla2 crashing

Phil Thompson phil at riverbankcomputing.com
Tue Sep 16 16:54:16 BST 2008


On Tue, 16 Sep 2008 11:45:00 -0400, "Vadim Peretokin"
<vadim.peretokin at mudlet.org> wrote:
> 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...

What version are you using?

Try the current snapshot. If you still have a problem then post a short,
complete example that demonstrates it.

Phil



More information about the QScintilla mailing list