facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.3k stars 1.02k forks source link

[C#, XP] Application crashes during RakPeerInterface::connect #88

Open LeBoozer opened 8 years ago

LeBoozer commented 8 years ago

I ported the project via SWIG to C#. The provided sample runs fine on machines like win7, win10 but crashes on XP as soon as i try to connect the client to a running server (for simplicity both running on the same system!). The sample has not been modified. It's working if the client cannot find the sever (e.g. due to not firing up the server...). I tried to catch all possible exception which can be catched in C#, but no luck here. Just the typical XP prompt (xyz has encountered a problem and needs to close. Send Error Report, Don't Send)

The port was done via visual studio 2015 with the toolset vs140_xp (otherwise it won't even start the application due to missing XP support).

larku commented 8 years ago

I have no experience with using RakNet on Windows XP, but the initial stand out difference between those operating systems is that I'd assume your Win7 and Win10 are both 64bit and your Win XP is likely 32bit (?) If so, I'd be suspicious that you're running into some type size differences.