thread problem
Hello.
I???ve made a Telnet Server in Delphi 7 that uses FastScript 1.8 in some operations.
This telnet server works with threads, this means that at some times 2 or more scripts are executed simultaneous. I think that FastScript don???t work very well whit this kind of approach. I can???t tell you the error or in what situation it occurs, because it???s impossible to simulate when ever you want to. The only thing that are common to the errors is that two terminals where executing the script in the telnet server.
My suspicious is that some global variable in the code of fastscript is declared in the wrong place and when we execute two times the script the second script changes the value of the variable and the first is not yet ready, and then because the value was changed the first execution crash.
Please answer soon,
Thanks.
Valter dos Santos Marques
I???ve made a Telnet Server in Delphi 7 that uses FastScript 1.8 in some operations.
This telnet server works with threads, this means that at some times 2 or more scripts are executed simultaneous. I think that FastScript don???t work very well whit this kind of approach. I can???t tell you the error or in what situation it occurs, because it???s impossible to simulate when ever you want to. The only thing that are common to the errors is that two terminals where executing the script in the telnet server.
My suspicious is that some global variable in the code of fastscript is declared in the wrong place and when we execute two times the script the second script changes the value of the variable and the first is not yet ready, and then because the value was changed the first execution crash.
Please answer soon,
Thanks.
Valter dos Santos Marques
Comments