Hey all,

I’ve setup a PLATFORM_SOCKETSUBSYSTEM for connecting to sockets which in UE4 version 4.8.x was working perfect. Now I’ve upgraded to version 4.9.0 I’m getting errors when destroying the socket.

I create the socket using:

ConnectionSocket = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateSocket(NAME_Stream, TEXT("default"), false);

and Destroy the socket using:


The Error I’m getting is:

Unhandled exception at 0x00007FFAEA0A2F84 (UE4Editor-Mangled-Win64-DebugGame.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

Would this be bad practice to just use the ConnectionSocket->Close(); I believe it is but would like clarification if possible.

For Now I’m having to remove this DestroySocket line in order to continue developing.


I do have the Sockets in my project build as without the line above All my sockets and connections are working perfect.

Thanks for any assistance.


I’m digging this post from the depths to signal that I’ve reached the exact same point and I am having the exact same problem.

Removing these ->DestroySocket() lines removes the crash, but I have to kill the UnrealEngine process when I close it because otherwise it lingers if I’ve at any point created sockets in PIE.