hikalkan / scs

TCP Server/Client Communication and RMI Framework
MIT License
225 stars 112 forks source link

Static linking #31

Closed matkuki closed 6 years ago

matkuki commented 6 years ago

Hi @hikalkan ,

Is there a difference between static and dynamic linking? If I add a reference to Scs.dll everything works. But If I include the source in my project directly (the Collections, Communication and Threading directories), then when I try a simple client/server application I get a timeout when the client tries to send a synchronized message! The timeout happens in the SynchronizedMessenger's ReceiveMessage function and the server never receives the message that the client sent.

Any Ideas?

Thanks, Matic

Cyb3rz3r0 commented 6 years ago

SynchronizedMessenger's ReceiveMessage requires a static and when you change it to something dynamic Synchronized messages won't work because the Server APP is using statics to handle these interactions I spent a good week until I pretty much wrote my own interpreter for sync messages using a log file I can read and append which gives me access to outside functions without static. I hope this helps if not send me pm.

matkuki commented 6 years ago

Hey @Cyb3rz3r0 , Thanks for the information.