You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
if only :)
This is probably easier for developers, otherwise they would have to explain that global variables can only be changed halfway in the OnTick handler when a timer event has occurred and the program has switched to it.
if only :)
Don't use MessageBox without thinking.
There are short "uninterrupted blocks" for that. The interrupt waits for it to complete in any case, then interrupts.
And I didn't know that at all, and I wrote with the assumption that an interruption might occur and the data wouldn't be fully processed.
Set flags to start and end processing.
An interruption is when OnTick is being executed and a more important event, such as OnTimer, has arrived. Execution of OnTick is paused, OnTimer code is executed and then OnTick is executed again.
And with interruptions, everything would be in the same thread.
And I didn't know about it at all and wrote with the possibility that there might be an interruption and the data would not be fully processed.
I set flags to start and end processing.
Here we go. The public is already halfway there, we can safely enter.
;)
Kindergarten in general, at least some multithreading is needed.