Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#37 Possible memory leaks

closed-invalid
QCodeEdit (16)
5
2009-02-16
2008-11-23
No

In my test, i have a Segmentation fault. I don't think make strange use (only automatic test).
The code attach finish in "Segmentation fault".

If you comment line qApp->processEvents() and m_edit->setCursor( ... ) the code don't crash

Is this case is a bug ?

Discussion

    • labels: --> QCodeEdit
     
  • fullmetalcoder
    fullmetalcoder
    2008-11-25

    Sorry, can't open the attached archive (my linux box is a bit of a mess atm and winrar keeps telling me the archive is corrupted...)

     
  • Crach code in ZIP format

     
    Attachments
  • I add the crach code in zip format.

     
  • fullmetalcoder
    fullmetalcoder
    2008-11-26

    Ok I've been able to open the new archive, compile the test case and run it but I get a weird error :

    D:\prog\testxinxcodeedit>testxinxcodeedit.exe
    ********* Start testing of TextXinxCodeEdit *********
    Config: Using QTest library 4.4.3, Qt 4.4.3
    QDEBUG : TextXinxCodeEdit::initTestCase()
    QObject: Cannot create children for a parent that is in a different thread.
    (Parent is XinxCodeEdit(003CF620), parent's thread is QThread(003C8FD8), current
    thread is QThread(05C718B0)
    QWidget: Must construct a QApplication before a QPaintDevice

    So I can't even reach the segfault which makes it difficult to fix. I'll try under Linux as soon as I get my linux box up and running as it seems my windows install of Qt 4.4.3 has some quirks...

     
  • fullmetalcoder
    fullmetalcoder
    2008-11-26

    • assigned_to: nobody --> fullmetalcoder
     
  • fullmetalcoder
    fullmetalcoder
    2009-01-05

    • status: open --> open-invalid
     
  • fullmetalcoder
    fullmetalcoder
    2009-02-16

    • status: open-invalid --> closed-invalid