์ธ๋ฆฌ์ผ์ ์ง์ง ํ ๋จ๊ณ ํ ๋จ๊ณ๊ฐ ๊ณ ๋์ด๋ค.
์ค๋ ์ธ๋ฆฌ์ผ ์์ง์ข ๊ณต๋ถํ๋ ค๊ณ ํ๋๋ฐ, ๋ฒ์ ๊ณผ ํ๊ฒฝ์ด ์กฐ๊ธ์ฉ ์ฐจ์ด๊ฐ ๋์ ๊ทธ๋ฐ์ง ์๋ง์ ์ค๋ฅ๋ค์ ๋ณด๊ณ ์์ต๋๋ค.
์ ์ผ์ง๋ ์ธ๋ฆฌ์ผ ์์ง์ด ์ด๋ฒ์๋ ํฌ๋์๊ฐ ๋๋ฉด์ ์ด๋ฆฌ์ง๊ฐ ์๋ค์. ํฌ๋์ ๋ด์ฉ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
LoginId:30a1cb664dfb555558d7ee83c21d552b
EpicAccountId:8799683bf31e488697922768e29c4ac5
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000000
UnrealEditor_CPP!AMyActor::AMyActor() [C:\Unreal_Projects\Practice_Unreal\Source\CPP\MyActor.cpp:17]
UnrealEditor_CoreUObject!UClass::CreateDefaultObject() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:4136]
UnrealEditor_CoreUObject!UObjectLoadAllCompiledInDefaultProperties() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectBase.cpp:832]
UnrealEditor_CoreUObject!ProcessNewlyLoadedUObjects() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectBase.cpp:917]
UnrealEditor_CoreUObject!TBaseStaticDelegateInstance<void __cdecl(FName,bool),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:739]
UnrealEditor_Core!TMulticastDelegate<void __cdecl(FName,bool),FDefaultDelegateUserPolicy>::Broadcast() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:975]
UnrealEditor_Core!FModuleManager::LoadModuleWithFailureReason() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Modules\ModuleManager.cpp:591]
UnrealEditor_Projects!FModuleDescriptor::LoadModulesForPhase() [D:\build\++UE5\Sync\Engine\Source\Runtime\Projects\Private\ModuleDescriptor.cpp:696]
UnrealEditor_Projects!FProjectManager::LoadModulesForProject() [D:\build\++UE5\Sync\Engine\Source\Runtime\Projects\Private\ProjectManager.cpp:62]
UnrealEditor!FEngineLoop::LoadStartupModules() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4188]
UnrealEditor!FEngineLoop::PreInitPostStartupScreen() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3523]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:154]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll
๋ด์ฉ์ ์ฝ์ด๋ณด๋, ๋ฉ๋ชจ๋ฆฌ ์ ๊ทผ ์๋ฐ ์ค๋ฅ์ธ ๊ฒ ๊ฐ์ต๋๋ค. 0x0000000000000000 ๋ฉ๋ชจ๋ฆฌ๋ ์ฐ๋ฆฌ๊ฐ ํํ ์๋ NULL์ด์ฃ .
AMyActor ํด๋์ค cpp ํ์ผ์ 17๋ฒ์งธ ์ค์์ ํฌ๋์๊ฐ ๋ฌ๋ค๊ณ ํ๋, ๊ทธ ๋ถ๋ถ์ ํ ๋ฒ ์ดํด๋ด ์๋ค.
์..., ๋ค์ ์ฝ๋ ๊ตฌ์ ์ ํตํด, Mesh ์ค๋ธ์ ํธ๋ฅผ ์์ฑํ๋ ๊ฑธ ๊น๋นกํ๋ค์... ์กด์ฌํ์ง๋ ์์ ์ ํํ ์ ๊ทผ์ ํ๋ NULL ํฌ๋์๊ฐ ๋ ๊ฒ์ด์์ต๋๋ค.
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("MESH"));
์ฐ์ ์ธ๋ฆฌ์ผ ์๋ํฐ๋ฅผ ๋ค์ ์ด์ด์ผ ํ๋๊น, ๋ฌธ์ ๊ฐ ๋๋ 17๋ฒ ์ฝ๋๋ ์ฐ์ ์ฃผ์์ฒ๋ฆฌํ๊ณ ์ฌ๋น๋ํ์ฌ ์ธ๋ฆฌ์ผ ์๋ํฐ๋ถํฐ ์ผ๋ณด๊ฒ ์ต๋๋ค.
์ ์ด๋ฆฌ๋ค์! ์ ๊ฐ์ ์ค์ํ์๋ ๋ถ์ ์๊ธธ ๋ฐ๋๋๋ค...ใ ใ
๊ทธ๋๋ ํด๊ฒฐ ์ ๋์๋ ๋ถ๋ค์ ์ธ๋ฆฌ์ผ ์์ง ์ ๋ฐ์ดํธ๋ฅผ ํ๋ ํด๊ฒฐ๋๋ค๋ ์ฌ๋ก๋ ๋ดค์ผ๋ ํ ๋ฒ ํด๋ณด์๋ฉด ์ข์ ๊ฒ ๊ฐ์์.