UdpClient.Receive() corrupts memory and causes crash in 64 bit builds (Windows, Mac).

Anyone out there using UdpClient successfully in 64 bit standalone builds?

I’m having the same problem too. Receiving packets using UdpClient in 64-bit Mac causes unpredictable app behaviour, sometimes the exception is localized to the receiving thread, sometimes it makes the whole program crash.