Results 1 to 4 of 4

Thread: Problem with compilation in release mode.

  1. #1
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Problem with compilation in release mode.

    When i compile my code in debug mode i everything is fine, program compiles and starts normally. But when I'm trying to do the same thing in release mode program doesn't appear, i mean main windows doesn't show and after a while app terminates.
    I use external dlls - qextserialport, adequate to debug and release modes.
    I need some hints what can i do to find what is wrong. I use command line and Mingw32 not Qt Creator suit.

    Was trying to find answer on forum but didn't find any useful.

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Problem with compilation in release mode.

    What is the app exit code ?

  3. #3
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problem with compilation in release mode.

    Windows tells me that program stopped functioning and gives me 3 links to two xmls and memory dump and ask me if i want to send informations to them.
    But after few executions there is no information about problems. Application starts and terminates quietly. I can see it for a while in task manager.

    In debug mode program works perfectly.
    Last edited by code_err; 22nd October 2011 at 16:35.

  4. #4
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problem with compilation in release mode.

    Ok, i have solved this problem. I can't still get used that problems with moc are not compilation phase bugs. I had one signal to nonexistent object on heap and there was memory protection error. I removed object but forgot about signals and slots.

Similar Threads

  1. Problem with building (I get always release mode in 4.7.3)
    By Mirko1974 in forum Qt Programming
    Replies: 3
    Last Post: 5th November 2013, 00:06
  2. Runtime problem in Release mode
    By benelgiac in forum Qt Programming
    Replies: 23
    Last Post: 20th February 2013, 12:59
  3. Replies: 1
    Last Post: 18th November 2009, 21:51
  4. Replies: 1
    Last Post: 2nd November 2009, 12:02
  5. Qt 4.4 - Problem displaying pixmap in release mode
    By spawn9997 in forum Qt Programming
    Replies: 0
    Last Post: 19th August 2009, 19:40

Tags for this Thread

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.