I'm using the Player 3.0.2, in Visual Studio 2010 with the Windows binaries. I've created a simple player client and manually added the directory for the player headers and the library files to the visual studio project. It compiles fine, but when I run it I get the following error when initializing the player client: "PlayerClient client("192.168.56.1", 6665);":
"A buffer overrun has occurred in PlayerTest.exe which has corrupted the program's internal state. Press Break to debug the program or Continue to terminate the program.
For more details please see Help topic 'How to debug Buffer Overrun Issues'."
And in the console it says: "playerc error : connect call on [192.168.56.1:18292145
] failed with error [0:The operation completed successfully.]"
or "Unhandled exception at 0x721592e3 in PlayerTest.exe: 0xC0000005: Access violation reading location 0x00000024." if I declare a variable before PlayerClient client("192.168.56.1", 6665); (weird I know :S).
The weird thing is that error message says that the player client is trying to connect with a different port number than I specified e.g. 18292145 rather than 6665?
I've tried to manually compile player using CMake 2.8 as well, I got as far as generating a Visual Studio 2010 project but it will not compile because stdint.h and types.h both define int64_t and uint64_t. I.e. the error "C2371: 'int64_t' : redefinition; different basic types". I tried using #ifndef etc as mentioned somewhere else on the mailing list but it didn't help.
Has anybody else created player clients on Windows successfully / have any ideas what could be going wrong?
Thanks for your help