PDA

View Full Version : Working multiple timer plugin



mangomel
01-14-2010, 01:52 PM
I'm looking for good working timer plugin supporting multiple instances of it's timer.
I tried AMSWaves's one but it's extremely unstable. I tried to manage it's bugs but after hours spent on checking out what's wrong I see it terminates my app on start without any explicable reason.
Then I tried object timer of Reteset. However, it has bugs too. Regular AMS actions doesn't work properly when fired by timer and it does (fires) some actions twice or more instead of once with no reason.
I also tried to use Worm's timer plugin but it shown message about licence violations or similar and didn't work because of it.

Now I'm very upset and angry because my app was almost finished and I was having high hopes with multitimer plugin but I see it's not so brightly.

Somebody could help?

RizlaUK
01-14-2010, 04:32 PM
there have been several timer solutions, iv posted a few myself!

almost all of them require some external resource (luacom, vb6 runtimes, or a plugin or dll)

my advice would be to keep it native, use AMSWaves Memory plugin and use the example from the below post to make your own timer system

http://www.indigorose.com/forums/showthread.php?t=28599

the memory plugin is VERY stable, i am using it as the backbone for some very complex plugins and its working VERY well, i know some plugin can cause unexplained crashing (iv never had a problem with retesets timer object) but this one is OK, you have my word on that (tested extensively on vista and win 7)

jassing
01-14-2010, 07:17 PM
I'm amazed anyone responded to this - he complains, says he's ****ed because he banked his entire application on the hopes of finding something that worked for him ("do the work for me, and do it right and make it free")

rizlauk, you'll likely need to do the work of setting the timer up for him... be warned,it likely will not work.

Like you, I regularly use a few of the timer plugin options w/o issue; so I suspect he's running a timer on the sub-second level and overloading the system... The timers are working, it's just his code that is making the system unstable... (Just a guess...)

mangomel
01-15-2010, 03:58 AM
I'm amazed anyone responded to this - he complains, says he's ****ed because he banked his entire application on the hopes of finding something that worked for him

Do you really have to be unkind? My project really does not requie any timer to do what it was planned to as primary. It doesn't need any actions fired by timer to work properly and be functional. However, one of a lot acpects of AMS apps nature is that they give easy possibility to be user-friendly and more visually interesting etc. One of these possibilities is timer but, one built-in timer is misunderstooding. Yes, I use timer just for visual thing. I don't have to use it, the same like I don't have to use any graphics, different sizes of fonts, more than white and black colors, more than custom icon etc, haven't I? I don't use this forum everyday and so I don't know about all plugins. However I remember when some time ago some people made multitimer plugins, and other people said it's awesome and they were thankful and there was a lot of therads about that. So later I thought I could use these plugins to make my app be better. I was very happy about mutititimer functionality and then I even almost couldn't imagine not to use it. But it was too easy to be truth, heh ;)


so I suspect he's running a timer on the sub-second level and overloading the system... The timers are working, it's just his code that is making the system unstable

This whole 'big' or 'bad' code fired by timer has less than 15 lines and is based on this 'very overloading-system' actions:
1. start just one more timer if some variable is <= 0 once
2. subtraction just two variables once
3. String.Left, String.TrimLeft once
4. Paragraph.SetText once
5. Stop Timer
Timers were unstable with no difference if they are set to 50ms or 10 seconds. As you noticed above, there's only one more timer and it has just two actions, similar like these I wrote. I did't add more timers yet. AMSWaves Timer worked fine when I used it's only one timer and second one was built-in AMS Page timer. But it wasn't good solution and I had still only two timers. What's more, AMSWaves Timer was interesting especially because some other actions fired before or after timer (f.e. Label.SetEnabled, Registry.GetValue) and with no connection to it, made it to terminate app instantly). PS. I use Windows 7 x64.

RizlaUK, thank you for help. I'll check that.
If someone know there are better plugins than these I used, should tell me if he want to do that, like RizlaUK did. But not to say things making a fool of some other people. Maybe I'm not master of programming but I know a bit of some things we are speaking about. I was tested this plugins many times spending a lot of hours so it's not my fancy to say they work badly.
Best regards