[Qt-interest] Qt crashing when minimizing and maximizing QMdiSubWindow (QVTKWidget)

Steven Ferrell ferr.mail at gmail.com
Wed Dec 16 20:21:50 CET 2009


I have four QMdiSubWindow widgets within a QMdiArea, each of which has its
own QVTKWidget added to it.  Sometimes (it seems random, but often), after
minimizing one of the sub windows, and clicking the maximize button on
another sub window, I crash to line 105 of malloc.c

*#ifdef _WIN64
    return HeapAlloc(_crtheap, 0, size ? size : 1);
#else  /* _WIN64 */
    if (__active_heap == __SYSTEM_HEAP) {
        return HeapAlloc(_crtheap, 0, size ? size : 1); //CRASHES TO THIS
LINE
    } else
    if ( __active_heap == __V6_HEAP ) {
        if (pvReturn = V6_HeapAlloc(size)) {
            return pvReturn;
        }
    }*


Also, when I maximize a subwindow, three buttons appear on the tool bar:
Minimize / Restore / Close Window.  When I click Close Window it always
crashes.to memcpy.asm at line 312:

*        mov     [edi+ecx*4-16],eax ;U - put dword into destination*


*
*I do have code that handles resizing of the sub windows whenever the main
window is resized, and I suspect it is possible that it could be linked to
the crashing, but I can't see why, and debugging does not show it going into
that area at any point around a crash.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091216/0a9d3e49/attachment.html 


More information about the Qt-interest-old mailing list