Fatal error after Compile Game Code in Editor

hi.i change some part of my game code and click on compile button then crash editor.(Unreal Engine 4.5)
i trying to open project but show this message:

Fatal error: [File:E:\_UnrealEngine\Tools\4_5\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 11] 
Cast of GreenLightCharacter /Script/GreenLight.Default__GreenLightCharacter to Level failed


KERNELBASE.dll!UnknownFunction (0x00007ffb413e5bf8) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!FOutputDeviceWindowsError::Serialize() (0x00007ffb2c767c2d) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor-Core.dll!FMsg::Logf__VA() (0x00007ffb2c60574f) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\core\private\misc\outputdevice.cpp:522]
UE4Editor-CoreUObject.dll!CastLogError() (0x00007ffb2d427217) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\coreuobject\private\templates\casts.cpp:12]
UE4Editor-Engine.dll!CastChecked<ULevel>() (0x00007ffb20c0b82a) + 89 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\coreuobject\public\templates\casts.h:30]
UE4Editor-Engine.dll!TActorIteratorBase<FActorFilter,FTickableLevelFilter>::operator++() (0x00007ffb20d57b5d) + 13 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\engine\public\engineutils.h:350]
UE4Editor-Engine.dll!UWorld::UpdateCullDistanceVolumes() (0x00007ffb21453e3f) + 9 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\engine\private\world.cpp:1292]
UE4Editor-Engine.dll!UWorld::InitializeNewWorld() (0x00007ffb21433ded) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\engine\private\world.cpp:1049]
UE4Editor-Engine.dll!UWorld::CreateWorld() (0x00007ffb21419e29) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\engine\private\world.cpp:1108]
UE4Editor-Engine.dll!UEngine::Init() (0x00007ffb213a62dd) + 58 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\engine\private\unrealengine.cpp:730]
UE4Editor-UnrealEd.dll!UEditorEngine::InitEditor() (0x00007ffb1f9792cf) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\editor\unrealed\private\editor.cpp:373]
UE4Editor-UnrealEd.dll!UEditorEngine::Init() (0x00007ffb1f976f44) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\editor\unrealed\private\editor.cpp:509]
UE4Editor-UnrealEd.dll!UUnrealEdEngine::Init() (0x00007ffb1fdbce6d) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\editor\unrealed\private\unrealedengine.cpp:39]
UE4Editor.exe!FEngineLoop::Init() (0x00007ff7237af1a7) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\launch\private\launchengineloop.cpp:1853]
UE4Editor-UnrealEd.dll!EditorInit() (0x00007ffb1fd92c77) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\editor\unrealed\private\unrealed.cpp:58]
UE4Editor.exe!GuardedMain() (0x00007ff7237aea4d) + 0 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\launch\private\launch.cpp:125]
UE4Editor.exe!GuardedMainWrapper() (0x00007ff7237aeb7a) + 5 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\launch\private\windows\launchwindows.cpp:125]
UE4Editor.exe!WinMain() (0x00007ff7237ba6f9) + 17 bytes [e:\_unrealengine\tools\4_5\engine\source\runtime\launch\private\windows\launchwindows.cpp:201]
UE4Editor.exe!__tmainCRTStartup() (0x00007ff7237bb629) + 21 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
KERNEL32.DLL!UnknownFunction (0x00007ffb43bb16ad) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffb440134a5) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffb440134a5) + 0 bytes [UnknownFile:0]

Please help me to open Project.

My problem solved.i have TSubobjectPtr WeaponShotImpulseActor; in Character class and WeaponShotImpulseActor = PCIP.CreateDefaultSubobject(this, TEXT(“Weapon Shot Impulse Actor”)); in Character class Constructor.When i Compile code do not have any error but editor crash.

Hey hassan_UE-

What code did you change in your project before the crash? If you could post the log file in your project folder’s Saved->Logs folder we can take a look. Also, are you able to open the .sln file for your project in visual studios?

Cheers

Are you able to open your project? At what point after compiling the code does the crash occur? Does the editor launch at all or does it happen immediately? Also, what windows configuration are you working in and are you building the full project or running a debug instance of the project?

Are you able to open your project?
yes. i Change WeaponShotImpulseActor to URadialForceComponent And Compile Code.then Project Run correctly.