Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
How to shutdown computer when idle
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
Looking for better way...
by
Khrys
[
Today
at 04:26:35 pm]
A basic windows program s...
by
TRon
[
Today
at 04:09:25 pm]
Random Carpet Designs: La...
by
majolika
[
Today
at 04:03:11 pm]
how to use SetSysColors?
by
TRon
[
Today
at 03:54:53 pm]
fpspreadsheet (Spready) -...
by
wp
[
Today
at 03:53:51 pm]
Forum slow?
by
marcov
[
Today
at 03:42:03 pm]
Add Artificial Intelligen...
by
VisualLab
[
Today
at 03:23:30 pm]
Deal or no Deal graphic
by
TBMan
[
Today
at 02:57:28 pm]
Pac man and Missile Comma...
by
TBMan
[
Today
at 02:51:05 pm]
Bug and crash. I think th...
by
VisualLab
[
Today
at 02:51:00 pm]
Tesseract for ocr
by
rvk
[
Today
at 02:30:29 pm]
New Package to use WIA sc...
by
MaxM74
[
Today
at 01:25:49 pm]
read text file position b...
by
Packs
[
Today
at 01:09:39 pm]
Context Sensitive Help fo...
by
marcov
[
Today
at 12:36:26 pm]
Troubles with function de...
by
alpine
[
Today
at 12:06:45 pm]
[Solved]Generic methods i...
by
cdbc
[
Today
at 11:47:01 am]
SplitString issue
by
Thaddy
[
Today
at 11:20:17 am]
changing the position of ...
by
kjteng
[
Today
at 10:48:10 am]
Usage of Lazlogger 2 - st...
by
PeterX
[
Today
at 10:08:04 am]
Generic function is 'wrea...
by
cdbc
[
Today
at 09:54:06 am]
Image processing
by
MarkMLl
[
Today
at 09:10:54 am]
show popupmenu in listvie...
by
ASerge
[
Today
at 06:19:40 am]
Accessing parent form fro...
by
nikel
[
Today
at 03:26:35 am]
Crosshair following Point...
by
chucky
[February 11, 2025, 11:41:11 pm]
Custom self drawn compone...
by
VisualLab
[February 11, 2025, 11:18:35 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: How to shutdown computer when idle (Read 2260 times)
Thaddy
Hero Member
Posts: 16523
Kallstadt seems a good place to evict Trump to.
Re: How to shutdown computer when idle
«
Reply #15 on:
August 13, 2024, 06:16:56 pm »
If you used the
exact
same code from me or the example from the manuals it should not crash.
Please file a bug report against the documentation example. Both should work, the example from the docs has been working for years. It is standard Linux.
If you did not use the
exact
code, don't do that.
«
Last Edit: August 13, 2024, 06:18:57 pm by Thaddy
»
Logged
But I am sure they don't want the Trumps back...
Thaddy
Hero Member
Posts: 16523
Kallstadt seems a good place to evict Trump to.
Re: How to shutdown computer when idle
«
Reply #16 on:
August 13, 2024, 06:18:23 pm »
You should never ignore errors in this case, but be exact.
Logged
But I am sure they don't want the Trumps back...
ginoo
Full Member
Posts: 109
Re: How to shutdown computer when idle
«
Reply #17 on:
August 13, 2024, 06:29:54 pm »
I attach image with source and error. Should this be reported?
Logged
Thaddy
Hero Member
Posts: 16523
Kallstadt seems a good place to evict Trump to.
Re: How to shutdown computer when idle
«
Reply #18 on:
August 13, 2024, 06:36:20 pm »
Are you using by any chance {$mode delphi} instead of {$mode objfpc} in your program?
What happens if you explicitly define {$mode objfpc}{$H+} ?
«
Last Edit: August 13, 2024, 06:38:35 pm by Thaddy
»
Logged
But I am sure they don't want the Trumps back...
ginoo
Full Member
Posts: 109
Re: How to shutdown computer when idle
«
Reply #19 on:
August 13, 2024, 06:44:18 pm »
I tried putting {$mode delphi}, then {$mode objfpc}, then {$mode objfpc}{$H+} in each case it gives that error. Then pressing F9 continues execution.
Logged
Thaddy
Hero Member
Posts: 16523
Kallstadt seems a good place to evict Trump to.
Re: How to shutdown computer when idle
«
Reply #20 on:
August 13, 2024, 07:20:22 pm »
Does it execute correctly? If so it is a Mint issue (not for the first time Mint isn't really .. well, mint..
)
Logged
But I am sure they don't want the Trumps back...
ginoo
Full Member
Posts: 109
Re: How to shutdown computer when idle
«
Reply #21 on:
August 13, 2024, 07:28:49 pm »
Yes, I had written that before as well, but maybe I explained it wrong. You launch the program, then on the return of the fpPause instruction comes up with that error shown in the image, then pressing the F9 key continues execution.
Logged
Print
Pages:
1
[
2
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
How to shutdown computer when idle
TinyPortal
© 2005-2018