Thank you for your tip Avra, but actually i don't have any problems with response of the GUI, this because it's a non-gui application
I'm coding a keyboard-mouse emulator for xinput controllers, and i need three timers to made the whole thing run.
One timer is inside che class that scan the running process, identify if is from a know game and load the XML with the joypad configuration. It fires every second.
The second timer is the pad emulation class, it check the xinput dell and press the keys. It fires every 1 millisecond.
The third is inside the main program, fires ever second and check if a game is running (from the first class) and start/stop the emulation (from the second class).
There isn't a GUI and the whole application didn't use much CPU, so i don't have problems with performance, until i don't use the basic TTimer.
This because TTimer didn't halt the application execution, so i had to disable and reanable it inside the ontimer event, leading to a performance loss because basically is destroing/recreating each time.
fpTimer works well, but is bugged and freeze randomly. The fix provided by EngKin works, but freeze randomy when i have more timers, so i can't use it. The timerthread by GetMen works, but cause a lot of problems when there are more timers, even worse than fptimer.
Actually i'm using two Ttimer for the 1-second events and the fixed fpTimer for the 1-millisecond event, and everything seems to work well.
But i'm curious to know why both fptimer and timerthread seems to conflict each other, freezing and firing when disabled.