I was about to use sockets for an application and decided to at least try the demo stack that you can downloadby clicking on the resources button and then clicking sample projects / internet chat
This btw is in version 6.7.11.
The program works except when you disconnect the chat client from the chat server it calls the SocketClosed command.
within there this line
Code: Select all
delete lChatterArray[s]
I printed out s and that has for example "127.0.0.1:976" which is the one and only key in the lChatterArray
At first I was stumped but knew I'd used the facility before then I remembered (it stumped me the first time) that you have to put the word local (or global) in front of the array variable
Code: Select all
delete local lChatterArray[s]
Regards Lagi