Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


cTicksPerDay: optimised compilation error with timer


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-20-2008, 11:14 PM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 83
Default cTicksPerDay: optimised compilation error with timer

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)
Attached Images
File Type: jpg Error.jpg (8.1 KB, 10 views)
Reply With Quote
  #2 (permalink)  
Old 04-21-2008, 05:58 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,306
Default

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.
Reply With Quote
  #3 (permalink)  
Old 04-21-2008, 06:15 PM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 83
Default

Quote:
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
out-of-memory-error based on timer after switching to V6 Frank Questions & Help Needed 2 01-17-2008 03:26 PM
6.01 Optimized compilation error dpriem Bug Reports 2 01-06-2008 03:42 PM
V6-not-optim, V6-Debug, and V6-optimised give not the same nested FOR-NEXT execution dan kabestan Questions & Help Needed 1 01-04-2008 07:17 PM
Event Countdown Timer dlfallen Share Your Creations 0 06-08-2007 05:48 AM


All times are GMT. The time now is 03:40 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0