2016-10-11 12 views
0

내가 (설정 파일을 수정) -MT와 QT 동적 컴파일사용 QT는

내 코드는 다음과 같다

(내 프로그램은 MT와 릴리스 모드도있다) :

int main(int argc, char *argv[]) 

{ 
    int ret = 0; 

    if(0 == ret) 
    { 
     QApplication a(argc, argv); 
     { 
      test01 w; 
      w.show(); 
      ret = a.exec(); 
     } 
    } 

    return ret; 
} 

test01 is very simple like this: 

class test01 : public QMainWindow 

{ 
    Q_OBJECT 

public: 
    test01(QWidget *parent = 0); 
    ~test01(); 

private: 
    Ui::test01Class ui; 
}; 

모든 것을 확인하지만, 주요 기능을 떠날 때, 그것은 추락 :

[enter image description here][1] 

누구든지 나를 도울 것인가?

+0

이미지가 추가되지 않았습니다. – pableiros

답변

0
[enter image description here][1] 

[email protected]() 알 [email protected]() 알

qwindows.dll! _free_base (빈 블록 * = 0x00425dc0) 라인 (112) C++ 줄 15 C++ qwindows.dll! operator delete (void * block = 0x00425dc0, 부호없는 int 형식 = 8) 줄 15 C++ qwindows.dll! QWindowsIntegrationPlugin :: scalar deleting destructor'(unsigned int) C++ Qt5Core.dll!QLibraryPrivate::unload(QLibraryPrivate::UnloadFlag flag=UnloadSys) Line 558 C++ Qt5Core.dll!QFactoryLoaderPrivate::~QFactoryLoaderPrivate() Line 87 C++ Qt5Core.dll!QFactoryLoaderPrivate:: 스칼라 삭제 소멸자 '(부호없는 정수) C++ Qt5Core.dll! Q Object :: ~ QObject() 줄 1049 C++ Qtactoreder! QFactoryLoader :: ~ QFactoryLoader() 줄 209 C++ Qt5Gui.dll!`익명 네임 스페이스 ':: Q_QGS_loader :: innerFunction :: 2':: 동적 atexit 소멸자' 홀더 '() C++ Qt5Gui.dll _execute_onexit_table :: __ L2 !! :() 라인 (206) C++ __ Qt5Gui.dll crt_seh_guarded_call :: 연산자() <, INT (보이드) &> (__ __ acrt_lock_and_call : L2 : & & setup = {...}, _execute_onexit_table :: __ l2 :: int (void) & action = int (void) {...}, __acrt_lock_and_call :: __ l2 :: & & cleanup = {...}) 204 행 C++ Qt5Gui.dll! __acrt_lock_and_call (void)> (const __acrt_lock_id lock_id = __acrt_exit_lock, _execute_o nexit_table :: __ L2 :: INT (무효) & & 작용 = INT (무효) {...}) 라인 (912) C++ Qt5Gui.dll _execute_onexit_table (_onexit_table_t * 표 = 0x0f873798) 라인 (160) C++ Qt5Gui.dll common_exit!의 : : __ L2 : :() 라인 (215) C++ __ Qt5Gui.dll crt_seh_guarded_call :: 연산자() <, 보이드 (공극) &> (__ __ acrt_lock_and_call : L2 : & & 설치 = {...} common_exit :: __ L2! :: void (void) & action = void (void) {...}, __acrt_lock_and_call :: __ l2 :: & & cleanup = {...}) 라인 225 C++ Qt5Gui.dll! __ acrt_lock_and_call (void)> __acrt_lock_id lock_id = __acrt_exit_lock, common_exit :: __ l2 :: void (void) & & 행동 = 무효 (무효) {...}) 라인 (912) C++ Qt5Gui.dll!의 common_exit (CONST의 INT의 return_code = 0, CONST _crt_exit_cleanup_mode의 cleanup_mode = _crt_exit_full_cleanup, CONST _crt_exit_return_mode의 return_mode = _crt_exit_return_to_caller) 라인 (263) C++ Qt5Gui.dll!의 _cexit() 라인 (298) C++ Qt5Gui.dll!의 dllmain_crt_process_detach (CONST의 부울 is_terminating = TRUE) 라인 (109) C++ Qt5Gui.dll!의 dllmain_crt_dispatch (HINSTANCE * CONST 인스턴스 = 0x0f4f0000 const가 부호 긴 이유 = 0 무효 * CONST는 =를 0x00000001 예약) 줄 134 C++ Qt5Gui.dll! dllmain_dispatch (HINSTANCE__ * const 인스턴스 = 0x0f4f0000, const 부호없는 긴 이유 = 0, void * const 예약 된 = 0x00000001) 줄 207 C++ Qt5Gui.dll! _DllMainCRTStartup (HINSTANCE__ * const instance = 0x0f4f0000, const unsigned 긴 이유 = 0, void * const 예약 됨 = 0x00000001) 라인 248 C++ ntdll.dll!_LdrpCallInitRoutine 16() 알 수없는 [email protected]() 알 수없는 [email protected]() 알 수없는 [email protected]() qt_template.exe! 알 수없는 exit_or_terminate_process (CONST 부호 INT의 return_code @) 라인 (129) C++ qt_template.exe! common_exit (CONST의 INT의 return_code = 0 CONST _crt_exit_cleanup_mode의 cleanup_mode = _crt_exit_full_cleanup, CONST _crt_exit_return_mode의 return_mode = _crt_exit_terminate_process) 라인 (218) C++ qt_template.exe! 출구 (INT return_code = 0) 라인 (282) C++ qt_template. exe! __scrt_common_main_seh() 줄 262 C++ kernel32.dll! @ BaseThreadInitThunk @ 12() 알 수 없음 ntdll.dll! ___ RtlUserThreadStart @ 8() 알 수 없음 ntdll.dll! __ RtlUserThrea dStart @ 8() 알 수 없음