if i change the TIME_PERIODIC for TIME_ONESHOT, i can fix 1 error with GDIPlUS::Image, because some animations aren't playing and that change can help on that. but can anyone explain better?
(Interval it's a property... but just see what it's inside. but if is realy necessary for test 1 error, i can share it)
i'm sorry... i forget 'subcribe' the thread :(
in some cases the timerid is NULL and the GetLastError() give me 5: acess denied. i don't understand why. have something to do that i use a class and the _TimerProc() been static?
Another problem might be that std::function is not a pointer, hence you should neither set it to null nor compare it with null. It has the operator bool in order to find out whether it is callable or not. See:
the problems was:
1 - i had 16 timers working, without notice, but i found them;
2 - i had 1 memory leak on my image class: i was using 'delete' 2 times on a variable without recreate it.
now i only have 1 question: seems that i can have only 16 timers activated. can i change these limits?
and you will see that after 16(they are Multimedia Timers), they don't fire.
in these case, i can't use SetTimer(), because i get several errors on destroying and creating on ms.
that class works fine. i was getting problems from another place.
thanks for all
now i'm using, correctly, the CreateTimerQueueTimer().. thanks for all