のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

ネイティブ' はコード 3 (0x3) で終了しました。

assertのメッセージボックスがでないとき、
3になるみたいだ。

なんで、メッセージボックスでないんだろ。
/*
* Write out via MessageBox
*/

nCode = __crtMessageBox(assertbuf,
_T("Microsoft Visual C++ Runtime Library"),
MB_ABORTRETRYIGNORE|MB_ICONHAND|
MB_SETFOREGROUND|MB_TASKMODAL);

/* Abort: abort the program */
if (nCode == IDABORT)
{
/* raise abort signal */
raise(SIGABRT);

/* We usually won't get here, but it's possible that
SIGABRT was ignored. So exit the program anyway. */

_exit(3);
}