Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
What's up with PtcCrt's delay procedure?
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
How to rename or move a s...
by
anse
[
Today
at 12:49:14 pm]
Difference in behavior fo...
by
lhl
[
Today
at 11:39:42 am]
[maybe SOLVED] BUG in Inp...
by
robert rozee
[
Today
at 11:26:58 am]
IfThenStr does not work -...
by
Thaddy
[
Today
at 10:51:48 am]
TDateEdit - And dates bef...
by
OC DelGuy
[
Today
at 09:54:29 am]
Creating Self Signed Cert...
by
MarkMLl
[
Today
at 08:32:01 am]
Remote access to database...
by
Zvoni
[
Today
at 08:21:05 am]
Hustle - A simple task ma...
by
Hansvb
[
Today
at 07:54:32 am]
Segmentation fault
by
cdbc
[
Today
at 07:24:34 am]
Converting a Project from...
by
TRon
[
Today
at 04:34:52 am]
Online Package Manager
by
Guva
[
Today
at 02:27:21 am]
PostgreSQL "no route to h...
by
wcage03
[
Today
at 02:26:44 am]
Bug in md5 unit?
by
Bart
[March 16, 2025, 10:57:41 pm]
TValueListEditor wont acc...
by
Bart
[March 16, 2025, 10:47:09 pm]
Lazarus crashes when link...
by
dsiders
[March 16, 2025, 10:02:13 pm]
Force parameters of my ap...
by
Ericktux
[March 16, 2025, 09:17:46 pm]
R3D - 3D Rendering Librar...
by
Lulu
[March 16, 2025, 07:57:46 pm]
TControlBar and hence the...
by
jamie
[March 16, 2025, 07:42:53 pm]
Qt 6.7 font features opti...
by
AlexTP
[March 16, 2025, 07:36:46 pm]
Hooking to `OnISupport` d...
by
Gustavo 'Gus' Carreno
[March 16, 2025, 07:32:14 pm]
NIL vs. Assign: when to u...
by
Zoran
[March 16, 2025, 07:09:40 pm]
mp4 video programming wit...
by
Thaddy
[March 16, 2025, 05:58:48 pm]
[SOLVED] TScrollBox Not S...
by
lhl
[March 16, 2025, 04:06:25 pm]
GTK3 still alpha
by
ALLIGATOR
[March 16, 2025, 03:06:15 pm]
The Silver Coder on YouTu...
by
paweld
[March 16, 2025, 01:38:01 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: What's up with PtcCrt's delay procedure? (Read 729 times)
TBMan
Jr. Member
Posts: 69
What's up with PtcCrt's delay procedure?
«
on:
February 02, 2025, 07:48:08 pm »
It just acts wonky at times. I've resorted to using a longint as a timer for certain things.
Logged
TRon
Hero Member
Posts: 4139
Re: What's up with PtcCrt's delay procedure?
«
Reply #1 on:
February 03, 2025, 09:02:39 pm »
tbh I never use delay so can't say I am familiar with the issue. I use sleep and timers when working with PTC.
Could you share a reproducible example ?
Logged
Today is tomorrow's yesterday.
Thaddy
Hero Member
Posts: 16640
Kallstadt seems a good place to evict Trump to.
Re: What's up with PtcCrt's delay procedure?
«
Reply #2 on:
February 04, 2025, 08:58:19 am »
The description you gave is not very helpful.
I am missing a compilable example, platform, bitness.
ptc has many lowlevel implementations and these differ per platform, e.g. on Win and Lin the behavior is different in some cases.
«
Last Edit: February 04, 2025, 09:08:42 am by Thaddy
»
Logged
But I am sure they don't want the Trumps back...
Thaddy
Hero Member
Posts: 16640
Kallstadt seems a good place to evict Trump to.
Re: What's up with PtcCrt's delay procedure?
«
Reply #3 on:
February 04, 2025, 09:31:42 am »
Also note that on most platforms delays should not be used as precision timers: they just guarantee a minimum delay() but otherwise have no priority.
You need OS timers for that.
Logged
But I am sure they don't want the Trumps back...
TBMan
Jr. Member
Posts: 69
Re: What's up with PtcCrt's delay procedure?
«
Reply #4 on:
February 09, 2025, 10:07:17 pm »
It just seems to be inconsistent in its use. Maybe it's my system. Sometimes
Code: Pascal
[Select]
[+]
[-]
Delay
(
10
)
takes forever and it shouldn't. It's probably my usage of it (in loops at times). Thanks for the responses.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
What's up with PtcCrt's delay procedure?
TinyPortal
© 2005-2018