2016-06-11 1 views
2

가 좋아, 내가 릴리스 빌드를 변경 그러나 때, 디버그 모드를 완벽하게 바로 작동하는 C++/CLI 응용 프로그램이, 프로그램 충돌 심지어 주에 도달하기 전에() 함수를 호출합니다. 내가 사용하고C++/CLI 응용 프로그램 충돌에 시작 (_register_onexit_function)

비주얼 스튜디오 엔터프라이즈 2015

다음은 오류의 스크린 샷입니다 :

extern "C" _onexit_t __cdecl _onexit(_onexit_t const function) 
{ 
_PVFV* const onexit_first = __crt_fast_decode_pointer(module_local_atexit_table._first); 

if (onexit_first == reinterpret_cast<_PVFV*>(-1)) 
{ 
    return _crt_atexit(reinterpret_cast<_PVFV>(function)) == 0 
     ? function 
     : nullptr; 
} 
else 
{ 
    // here it crashes 
    return _register_onexit_function(&module_local_atexit_table, function) == 0 
     ? function 
     : nullptr; 
} 
} 

답변

-1

난을 데 :이의 프로그램이 충돌 함수가 Program crashes on this function

같은 문제. boost 함수를 추가하면 시작시에 코드가 실행되기 전에 실패합니다. 그것은 잘 컴파일됩니다.

boost::archive::xml_oarchive * oa = new boost::archive::xml_oarchive(*stream); 
+0

답변이 OP 질문과 관련이 없으므로 답이 내려졌습니다. [http://stackoverflow.com/help/how-to-answer] (좋은 답변 작성 방법)을 읽은 다음 해당 지침을 충족 할 수있는 답을 편집 할 수 있는지 또는 대답을 삭제 해보십시오. – cb4

관련 문제