cTicksPerDay: optimised compilation error with timer

LineCutter

Active Member
Licensed User
I have no problem compiling without optimisation, but can't see a way to change the setting on the external compiler. It seems that 24*cTicksPerHour does the same thing too.
The problem seems linked to the use with a timer, although I can't see an explicit limit on the number of ms to a tick. (Just putting cTicksPerDay in a program works fine)
 

Attachments

Erel

Administrator
Staff member
Licensed User
cTicksPerDay = 864000000000
You are trying to set the interval property of the timer to 864000000000 milliseconds which equals to 100000 days.
This number is to large (and not meaningful anyway) for the interval property.
 

LineCutter

Active Member
Licensed User
Gets or sets the interval time (in milliseconds) between Timer ticks.
Syntax:Interval
Example: Timer1.Interval = 1000 ' Timer will tick every second
I want the timer to tick once per day... ah, hang on, elsewhere in the help: "Each tick is 1/10,000,000 of a second".

I'd got my ticks confused with my ticks:sign0161:
 
Top