I recently started using Qt and up until now everything's ran very smooth. When I choose to debug my application from within Qt Creator (in either release or debug configuration), it runs just fine without any exceptions. When I only run my debug build of the application, I get no exceptions as well. Then, for some odd reason when I choose to run my release build of the application I get exceptions within my code, but I'm not understanding why I would get the exceptions only without the debugger attached, and without any #ifdef directives. When I run it and manually attach the debugger I have the same issue, yet directly debugging from within Qt Creator works.

I'm debugging on Windows 7, and my .pro file is as follows:

Qt Code:
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2011-12-30T11:32:37
  4. #
  5. #-------------------------------------------------
  6.  
  7. QT += core gui
  8.  
  9. TARGET = Up
  10. TEMPLATE = app
  11.  
  12.  
  13. SOURCES += main.cpp\
  14. MainForm.cpp \
  15. AboutForm.cpp
  16.  
  17. HEADERS += MainForm.h \
  18. AboutForm.h
  19.  
  20. FORMS += MainForm.ui \
  21. AboutForm.ui
  22.  
  23.  
  24. QMAKE_CFLAGS_RELEASE += -Zi
  25. QMAKE_CXXFLAGS_RELEASE += -Zi -g
  26. QMAKE_LFLAGS_RELEASE += /DEBUG /OPT:REF
  27.  
  28.  
  29. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../FATX-build-release/release/ -lFATX
  30. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../FATX-build-debug/debug/ -lFATX
  31. else:unix:!symbian: LIBS += -L$$PWD/../FATX-build-debug/ -lFATX
  32.  
  33. release{
  34. INCLUDEPATH += $$PWD/../FATX-build-release/release
  35. DEPENDPATH += $$PWD/../FATX-build-release/release
  36. }
  37. debug{
  38. INCLUDEPATH += $$PWD/../FATX-build-debug/debug
  39. DEPENDPATH += $$PWD/../FATX-build-debug/debug
  40. }
  41.  
  42. win32:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../FATX-build-release/release/FATX.lib
  43. else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../FATX-build-debug/debug/FATX.lib
  44. else:unix:!symbian: PRE_TARGETDEPS += $$PWD/../FATX-build-debug/debug/libFATX.a
  45.  
  46. RESOURCES += \
  47. MainForm.qrc
To copy to clipboard, switch view to plain text mode 

Any help at all is greatly appreciated! Thanks.