You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why it would crash inside the isP2PPacketAvailable() function, but I agree that the Java API could do a better job here. I believe there's also a bug with readP2PPacket() - it should check the return value and limit() recBuffer accordingly afterwards. (The same bug exists in SteamNetworkingTest)
Also, not sure what your steam.net.get() does, and how many of those listeners you create, but you may run into trouble here. Try to not share that SteamNetworking instance, but just create a local one.
Ah, that line just lazy-loads the interface. There's only the one interface and it's disposed of properly, so no issues there.
I found the presence of the error strange due to the simplicity of the C method. I have no idea what could cause it. Doesn't help that the windows error reporting for the native code is borderline unreadable to me.
In one use case, the mentioned function consistently errors out.
Here's my relevant code. Let me know if there's an alternative way I should be using the method.
Here's the error log, since I'm on Windows:
hs_err_pid18664.log
The text was updated successfully, but these errors were encountered: