Results 1 to 4 of 4

Thread: Qwt crash in Vista

  1. #1
    Join Date
    Feb 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Windows

    Question Qwt crash in Vista

    I've encountered a problem with Qwt in Visual Studio 2005 under Vista. Qwt was compiled with VS 2005.

    The crash occurs when I close the program I wrote. And the debugger reports heap corruption. However the same program works just fine under Windows XP. I checked the call stack the last call before the crash was from qwtd5.dll. After I remove all Qwt code, it works just fine.

    I compiled both debug and release versions of Qwt using the file in "admin\msvc-qmake.bat".

    Anybody else having this problem? Attached are screenshots of the debugger info. Thank you all in advance.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qwt crash in Vista

    There is a 99% chance the problem is with your code that calls Qwt. With XP you are lucky and hit a zero value and in Vista there is a non-null value there which you try to dereference or something like that. Take a debugger and debug your application to see where exactly the problem occurs.

  3. #3
    Join Date
    Feb 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt crash in Vista

    Thank you, I will give it a try.

  4. #4
    Join Date
    Feb 2009
    Posts
    11
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Qwt crash in Vista

    OK, I started a brand new project and added nothing but a QwtPlot in the application window. Still the program crashes while closing and reports heap corruption. Below is the code I used:

    Qt Code:
    1. GUI::GUI(QWidget *parent, Qt::WFlags flags)
    2. : QMainWindow(parent, flags){
    3.  
    4. this->resize(1010,950);
    5. QApplication::setStyle(QStyleFactory::create("Cleanlooks"));
    6.  
    7. viewtabs = new QTabWidget();
    8.  
    9. // Plot
    10. dataPlot = new QwtPlot();
    11. curve = new QwtPlotCurve("Curve");
    12. curve->attach(dataPlot);
    13.  
    14. viewtabs->addTab(dataPlot, "Plot");
    15. setCentralWidget(viewtabs);
    16.  
    17. }
    To copy to clipboard, switch view to plain text mode 

    I noticed whenever I commented out "curve->attach(dataPlot);", the program does not crash. Did I initialize the curve wrong? Also I forgot to mention earlier I am using Vista Ultimate 64 bit, while the application and Qwt were compiled with 32 bit mode.

    If you happen to have Qwt compiled under Vista, can you please send me the debug and release LIB and DLL files so I can test them?

    Thanks.
    Last edited by roland8454; 3rd February 2009 at 20:38.

Similar Threads

  1. Step by step Qwt on MinGW
    By Doug Broadwell in forum Qwt
    Replies: 2
    Last Post: 23rd January 2009, 00:19
  2. QWT introduction
    By nitriles in forum Qwt
    Replies: 4
    Last Post: 28th September 2007, 10:48
  3. How to upgrade Qwt 5.0.1 to Qwt 5.0.2
    By luffy27 in forum Qwt
    Replies: 1
    Last Post: 15th July 2007, 19:55
  4. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 11:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.