Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

終了時の例外エラー #7

Open
yotiosoft opened this issue Aug 8, 2022 · 1 comment
Open

終了時の例外エラー #7

yotiosoft opened this issue Aug 8, 2022 · 1 comment

Comments

@yotiosoft
Copy link
Owner

yotiosoft commented Aug 8, 2022

Windows版で発生

0x00007FF77C44F2BA で例外がスローされました (Cities-Box.cpp(debug).exe 内): 0xC0000005: 場所 0xFFFFFFFFFFFFFFFF の読み取り中にアクセス違反が発生しました


Cities-Box.cpp(debug).exe!IME_HandleMessage(struct HWND__ *,unsigned int,unsigned __int64,__int64 *,struct SDL_VideoData *)	C++
Cities-Box.cpp(debug).exe!s3d::CTextInput::process(unsigned int,unsigned __int64,__int64 *)	C++
Cities-Box.cpp(debug).exe!s3d::WindowProc(struct HWND__ *,unsigned int,unsigned __int64,__int64)	C++
user32.dll!00007ffbeadce858()	不明
user32.dll!00007ffbeadce3dc()	不明
user32.dll!00007ffbeade0bc3()	不明
ntdll.dll!00007ffbec830d74()	不明
win32u.dll!00007ffbea4c1064()	不明
user32.dll!00007ffbeadca5c3()	不明
user32.dll!00007ffbeadca523()	不明
Cities-Box.cpp(debug).exe!WinMain�()	C++

Cities-Box.cpp(debug).exe!invoke_main() 行 107 C++
Cities-Box.cpp(debug).exe!__scrt_common_main_seh() 行 288 C++
Cities-Box.cpp(debug).exe!__scrt_common_main() 行 331 C++
Cities-Box.cpp(debug).exe!WinMainCRTStartup(void * __formal) 行 17 C++
kernel32.dll!00007ffbebb07034() 不明
ntdll.dll!00007ffbec7e2651() 不明

@yotiosoft
Copy link
Owner Author

発生箇所:
execommon.inl Line107

#elif defined _SCRT_STARTUP_WINMAIN

using main_policy = __scrt_winmain_policy;
using file_policy = __scrt_file_policy;
using argv_policy = __scrt_narrow_argv_policy;
using environment_policy = __scrt_narrow_environment_policy;

static int __cdecl invoke_main()
{
    return WinMain(
        reinterpret_cast<HINSTANCE>(&__ImageBase),
        nullptr,
        _get_narrow_winmain_command_line(),
        __scrt_get_show_window_mode());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant