123 taught me that I could use the OnInit property for modules to do things when the Premise SYS service starts. However, what's the best way to run generic scripts (things that belong under home) at start up? I really don't want to stick generic things under a module... I think this is talked about on here somewhere, but I can't find it now.
The main reason I'm asking is that sometimes when I'm writing code and mess something up, the interpreter will freeze on the error. I have to set a breakpoint and hit the stop debug button several times. It appears sometimes when this occurs a timer or two will expire during the process. This is fine, except that many timers are used as polling timers and this means I have to manually start polliing. The best fix I've found so far is to recreate the timer using a modules OnChangeOnInit property. That way rebooting the server will fix any expired polling timers.
However, the problem is some modules do not use a serial port and thus do not have the handy OnChangeOnInit property. The module I'm talking about is XMLWeather (aka TWCiWeather) and it's system timer that triggers update every few hours (update grabs new xml weather data from the web). TWCiWeather triggers an update whenever an XMLWeather home object is created (ie uses a constructor), but not upon a reboot
The main reason I'm asking is that sometimes when I'm writing code and mess something up, the interpreter will freeze on the error. I have to set a breakpoint and hit the stop debug button several times. It appears sometimes when this occurs a timer or two will expire during the process. This is fine, except that many timers are used as polling timers and this means I have to manually start polliing. The best fix I've found so far is to recreate the timer using a modules OnChangeOnInit property. That way rebooting the server will fix any expired polling timers.
However, the problem is some modules do not use a serial port and thus do not have the handy OnChangeOnInit property. The module I'm talking about is XMLWeather (aka TWCiWeather) and it's system timer that triggers update every few hours (update grabs new xml weather data from the web). TWCiWeather triggers an update whenever an XMLWeather home object is created (ie uses a constructor), but not upon a reboot
