<br>Is anyone else seeing a crash or memory scribbles when the QSciAPIs object is destroyed?<br><br>The following code is bringing down my app when I destroy the widget (running qt3, with quite a number of api entries.)<br>
<br><div style="margin-left: 40px;">QWidgetCodeEditor::QWidgetCodeEditor(QWidget *parent, const char *name, WFlags f ) : <br> QsciScintilla(parent, name,f)<br>{<br> m_lua_lexer = new bdiLexerLua();<br> m_lua_apis = new QsciAPIs(m_lua_lexer);<br>
m_lua_lexer->setAPIs(m_lua_apis);<br><br> m_perl_lexer = new QsciLexerPerl();<br> m_perl_apis = new QsciAPIs(m_perl_lexer);<br> m_perl_lexer->setAPIs(m_perl_apis);<br><br> m_initted = 0;<br>}<br></div>
<br> /****************************************************************************/<br><div style="margin-left: 40px;">QWidgetCodeEditor::~QWidgetCodeEditor()<br>{<br> m_perl_lexer->setAPIs(NULL);<br> m_perl_apis->cancelPreparation();<br>
delete m_perl_apis; m_perl_apis = NULL;<br><br> m_lua_lexer->setAPIs(NULL);<br> m_lua_apis->cancelPreparation();<br> delete m_lua_apis; m_lua_apis = NULL;<br><br> delete m_lua_lexer; m_lua_lexer = NULL;<br>
delete m_perl_lexer; m_perl_lexer = NULL;<br>}<br></div><br clear="all"><br>-- <br>---------------------------------------------------------------<br>cel: 917.776.8346 AIM: gedaliap<br><a href="http://www.gedalia.net">http://www.gedalia.net</a><br>
---------------------------------------------------------------<br>Fight Entropy!!! Fight Entropy!!! Figth Etnropy! !<br>iFgth Etnrop!y ! giFth tErno!py ! giFt htrEno!p y! --- Well maybe<br>not...