Results 1 to 4 of 4

Thread: Qwt works in release, blows in debug...

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Qwt works in release, blows in debug...

    Environment: Qt 4.5.1, qwt 5.2.0, vs2008
    Problem:
    When project is built in debug mode it blows inside the "setupUi" call on invocation of statPlot = new QwtPlot(widget1);
    When it is built in release it works just fine.

    I built qwt using instructions from INSTALL file in qtw directory without any modification.

    Any help with this issue will be appreciated.
    Thanks

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qwt works in release, blows in debug...

    You must not mix debug and release modes on Windows. Compile your app and Qwt in either debug or release mode.
    J-P Nurmi

  3. #3
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt works in release, blows in debug...

    Thank you for the reply.

    Yes, I am aware of no-no to mix debug and release libs. The problem is that Qwt Install document does not say anything specific about compiling qwt in debug mode (I just rechecked it and don't see any mention of debug build).

    I compiled Qwt by following install instructions and it built qwt5.dll and lib, without separate debug version of the library.

    What are the steps to compile Qwt in debug mode?

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qwt works in release, blows in debug...

    It should be only a matter of passing "-config debug" to qmake unless the mode was hardcoded in the .pro file.
    J-P Nurmi

Similar Threads

  1. QWT fails in debug build
    By steg90 in forum Qwt
    Replies: 1
    Last Post: 11th November 2011, 06:53
  2. Replies: 0
    Last Post: 2nd March 2009, 12:49
  3. Need debug and release versions of Qwt?
    By Tiansen in forum Qwt
    Replies: 1
    Last Post: 28th March 2008, 07:55
  4. Replies: 2
    Last Post: 20th July 2007, 16:34

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.