# Unreal editor crashes on every new project after adding dependencies to projectname.build.cs and adding simple code, after this cant reopen project cause of unable to load projectname Module?

**URL:** <https://forums.unrealengine.com/t/unreal-editor-crashes-on-every-new-project-after-adding-dependencies-to-projectname-build-cs-and-adding-simple-code-after-this-cant-reopen-project-cause-of-unable-to-load-projectname-module/428622>\
**Category:** Multiplayer & Networking\
**Tags:** udp, Networking, unreal-engine, crash, dll-missing, UE4, question\
**Created:** [July 3, 2018, 5:40pm UTC](https://forums.unrealengine.com/t/unreal-editor-crashes-on-every-new-project-after-adding-dependencies-to-projectname-build-cs-and-adding-simple-code-after-this-cant-reopen-project-cause-of-unable-to-load-projectname-module/428622 "2018-07-03T17:40:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_05f3c6be](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_05f3c6be](https://forums.unrealengine.com/u/anonymous_user_05f3c6be)\
**Post date:** [July 3, 2018, 5:40pm UTC](https://forums.unrealengine.com/t/unreal-editor-crashes-on-every-new-project-after-adding-dependencies-to-projectname-build-cs-and-adding-simple-code-after-this-cant-reopen-project-cause-of-unable-to-load-projectname-module/428622/1 "2018-07-03T17:40:45Z")

</div>

I just add “Networking” and “Sockets” to build.cs. and then use the .uproject file to Generate visual studio project files.  
The code i am adding is a udp client that is in an actor component attached to a cine camera actor.  
Here is the code:  
`  
#include “NewActorComponent.h”  
#include “Networking.h”  
#include “Sockets.h”  
#include “SocketSubsystem.h”

UPROPERTY(EditAnywhere)  
FIPv4Address IP(127, 0, 0, 1);  
UPROPERTY(EditAnywhere)  
int32 Port = 80;  
uint8\_t\* RecevedBytes;  
int32 ReadedBytes;  
//TSharedRef Addr;  
TSharedPtr Addr;

FSocket\* Socket;  
ESocketReceiveFlags::Type Flags;

// Sets default values for this component’s properties  
UNewActorComponent::UNewActorComponent()  
{  
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features  
// off to improve performance if you don’t need them.  
PrimaryComponentTick.bCanEverTick = true;

```
// ...

```

}

// Called when the game starts  
void UNewActorComponent::BeginPlay()  
{  
Super::BeginPlay();  
Port = 6301;

```
Addr->SetIp(IP.Value);
Addr->SetPort(Port);
Addr = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateInternetAddr();
Socket = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateSocket(NAME_Stream, TEXT("Socket"), false);
bool Connected = Socket->Connect(*Addr);
Flags = ESocketReceiveFlags::None;
// ...

```

}

// Called every frame  
void UNewActorComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction\* ThisTickFunction)  
{  
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);  
Socket-\>Recv(RecevedBytes, 67, ReadedBytes, Flags);  
// …  
}  
`

Here are crash files after relaunching the project.

Fatal error: [File:D:\Build++UE4+Release-4.19+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 2499] None is not being constructed with either NewObject, NewNamedObject or ConstructObject.

UE4Editor\_CoreUObject!UObject::ConditionalBeginDestroy() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\coreuobject\private\uobject\obj.cpp:884]  
UE4Editor\_CoreUObject!StaticExit() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\coreuobject\private\uobject\obj.cpp:4226]  
UE4Editor\_CoreUObject!TBaseStaticDelegateInstance::ExecuteIfSafe() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:788]  
UE4Editor!TBaseMulticastDelegate::Broadcast() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:937]  
UE4Editor!FEngineLoop::AppPreExit() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:4052]  
UE4Editor!FEngineLoop::Exit() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2885]  
UE4Editor!GuardedMain() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\launch\private\launch.cpp:177]  
UE4Editor!GuardedMainWrapper() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:144]  
UE4Editor!WinMain() [d:\build++ue4+release-4.19+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:223]  
UE4Editor!\_\_scrt\_common\_main\_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe\_common.inl:253]  
kernel32  
ntdll

I used the steps in this post:

> **[Unable to load Module](https://forums.unrealengine.com/questions/293351/unable-to-load-module-1.html)**
>
> Hi, I’m trying to get UE4 running on Linux (Linux Mint 13.2) and have some problems. I build the Editor after this Manual: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums The Editor is running just fine, but if I...

to find out what .dll files are missing.The dll files that are missing are: aqProf.dll, VtuneApi.dll, VtuneApi32e.dll ,PhysXUpdateLoader64.dll, amdihk64.dll.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_05f3c6be](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_05f3c6be](https://forums.unrealengine.com/u/anonymous_user_05f3c6be)\
**Post date:** [July 3, 2018, 5:45pm UTC](https://forums.unrealengine.com/t/unreal-editor-crashes-on-every-new-project-after-adding-dependencies-to-projectname-build-cs-and-adding-simple-code-after-this-cant-reopen-project-cause-of-unable-to-load-projectname-module/428622/2 "2018-07-03T17:45:29Z")

</div>

#include “NewActorComponent.h”  
#include “Networking.h”  
#include “Sockets.h”  
#include “SocketSubsystem.h”

```
UPROPERTY(EditAnywhere)
FIPv4Address IP(127, 0, 0, 1);
UPROPERTY(EditAnywhere)
int32 Port = 80;
uint8_t* RecevedBytes;
int32 ReadedBytes;
//TSharedRef<FInternetAddr> Addr;
TSharedPtr<FInternetAddr> Addr;

FSocket* Socket;
ESocketReceiveFlags::Type Flags;

// Sets default values for this component's properties
UNewActorComponent::UNewActorComponent()
{
	// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
	// off to improve performance if you don't need them.
	PrimaryComponentTick.bCanEverTick = true;

	// ...
}

// Called when the game starts
void UNewActorComponent::BeginPlay()
{
	Super::BeginPlay();
	Port = 6301;
	/*
	FSocket* Socket = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateSocket(NAME_Stream, TEXT("default"), false);
	Addr = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateInternetAddr();
	Addr->SetIp(IP.Value);
	Addr->SetPort(Port);
	*/

	Addr->SetIp(IP.Value);
	Addr->SetPort(Port);
	Addr = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateInternetAddr();
	Socket = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateSocket(NAME_Stream, TEXT("Socket"), false);
	bool Connected = Socket->Connect(*Addr);
	Flags = ESocketReceiveFlags::None;
	// ...
	
}

// Called every frame
void UNewActorComponent::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
	Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
	Socket->Recv(RecevedBytes, 67, ReadedBytes, Flags);
	// ...
}

```

Posting the code once more it isnt formated in the question
