OnTimer() weird behaviour New comment Route206 2015.10.29 21:05 i have the following simple code for an OnTimer() function: void OnTimer() { int bla=FileOpen("last.txt",FILE_READ|FILE_CSV," "); if(bla==INVALID_HANDLE) { Alert("Problem reading file"); } else { Alert("last.txt?, Got it! ",TimeToString(time_stamp)," and ",TimeToString(FileGetInteger(bla,FILE_MODIFY_DATE))); } FileClose(bla); }Timer said is set for 30s and every 30s i get 2 Alerts with said text above2 !!! how weird is that?? Sometimes they are 2s apart, but mostly they have exactly the same time-stap (not to be confused with time_stamp in code)any ideas? i'm baffled... Once i click button EA Runs in to access violation error. OnTimer() has a very large delay. How to solve it? Strange Order Behaviour Route206 2015.10.30 08:48 #1 Never mind - i solved it.And yes... it was a stupid mistake. New comment
i have the following simple code for an OnTimer() function:
Timer said is set for 30s and every 30s i get 2 Alerts with said text above
2 !!! how weird is that?? Sometimes they are 2s apart, but mostly they have exactly the same time-stap (not to be confused with time_stamp in code)
any ideas? i'm baffled...