Hi !
I am trying to write script that will allow me to communicate with server written in Java (simply: I just want to move 'script logic' to Java instead of Pascal). I am using CreateSocket() function from EnEsCe tutorial (
http://enesce.com/help/html/TCP%20Sockets.html).
When I call it, it calls CreateThreaded and then server reports Access Violation exception from CreateThreaded, but server still works (exception in created thread ?). I call CreateSocket from ActivateServer(). The only thing I modified in EnEsCe's tutorial is that I added some WriteConsole() for example in OnConnected().
Please, tell me if this function is still experimental ? Or maybe it is now well tested ? I use recent version of server (1.6.2). The bug occurs when remote server is running and when it's not running. Server does not seen any connection attempt. What could I possibly fix or maybe it's the internal bug ?
Thanks in advance for any help
http://imageshack.us/photo/my-images/714/serverbugm.png/ - how the bug occurs
http://4programmers.net/Pastebin/1452 - code of the script (some crappy code from "user-login-script" I found on the net (I will refactor it later and probably move to Java if my project succedees) and on
THE BOTTOM of the script there is this "network code").
Greets,
Szaman.