Hello,
I m using OnApplicationStart function to set my global variables that are used along the threads to calculate sums/substracts and many more.
During the the threads other infos are written in to the same txt file.
At the end of the script i would like to save the calculation results (saved in global variables) to the same text file at the end with "write" function
When the code is placed on main script section, everytime a thread is finished the global variables are written to txt file.
I just want to write at the end only once.
I thought on OnApplicationEnd function, does it exist? if no is there any solution to my problem?
Thanks again for the time you are taking to help!