CAppDialog issues with EventSetTimer

 

I am using standard library CAppDialog to create a dialog

void OnInit() {
EventSetTimer(1);
}

void OnTimer() {
// Do Something
}

When

EventSetTimer(1);

is set, The panel freezes and becomes unresponsive but when

EventSetTimer(5);

is set, it works !

How can i make it work on 

EventSetTimer(1)

?

I have also tried it with

Sleep(1000)

it freezes until value is more than 

 5000 

milliseconds

Documentation on MQL5: Standard Library / Panels and Dialogs / CAppDialog / Create
Documentation on MQL5: Standard Library / Panels and Dialogs / CAppDialog / Create
  • www.mql5.com
Create(const long,const string,const int,const int,const int,const int,const int) - CAppDialog - Panels and Dialogs - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Show us the contents of OnTimer.