thread problem

edited 1:14PM in FastScript
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

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.