getnamo / UDP-Unreal

Convenience UDP wrapper for the Unreal Engine.
MIT License
335 stars 79 forks source link

Socket field access violation #3

Closed Gnitry closed 5 years ago

Gnitry commented 5 years ago

Unreal Engine editor very often crashed with access violation because the field ReceiverSocket (or SenderSocked, i don't remember now...) was not initialized in the constructor.

The following code in the constructor helped me:

SenderSocket = nullptr;
ReceiveSocket = nullptr;
getnamo commented 5 years ago

Yeah in debug builds uninitialized fields can be problematic, make a pull request and I'll merge it.

getnamo commented 5 years ago

fix merged in https://github.com/getnamo/udp-ue4/pull/4