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
Bitmap 16bit R5G6B5
by
JZS
[
Today
at 12:15:08 pm]
Prevent collapsing item l...
by
Hansvb
[
Today
at 12:03:56 pm]
Who uses embedded languag...
by
MarkMLl
[
Today
at 11:18:12 am]
Golang vs free pascal
by
Laksen
[
Today
at 10:39:24 am]
TUI design (and ham radio...
by
MarkMLl
[
Today
at 10:22:15 am]
Class designer/editor
by
dseligo
[
Today
at 10:08:26 am]
How many levels of proced...
by
vfclists
[
Today
at 09:32:05 am]
TSynEdit: linefeeds and L...
by
Martin_fr
[
Today
at 09:19:03 am]
Browser User Agent & Frie...
by
ASBzone
[
Today
at 08:30:15 am]
Assigning result of a fun...
by
Thaddy
[
Today
at 07:41:50 am]
C++ conversion : what is ...
by
Thaddy
[
Today
at 07:09:07 am]
Fractal using Primes (and...
by
Boleeman
[
Today
at 03:56:46 am]
libqt6pas and ChatGPT
by
Bogen85
[
Today
at 02:21:26 am]
[SOLVED] Getting started ...
by
dbannon
[
Today
at 02:16:27 am]
Broken Icon Display on ma...
by
lainz
[September 14, 2024, 10:54:02 pm]
New Swagger/OpenAPI Clien...
by
vfclists
[September 14, 2024, 09:16:18 pm]
Listview how to custom or...
by
zeljko
[September 14, 2024, 08:45:48 pm]
Extended Module Player
by
Gigatron
[September 14, 2024, 07:57:58 pm]
Dark Mode on macOS 14.6.1
by
carl_caulkett
[September 14, 2024, 06:07:47 pm]
JSON with SQLite. SELECT ...
by
strubri
[September 14, 2024, 05:25:13 pm]
Creating `.app`s on the M...
by
carl_caulkett
[September 14, 2024, 04:57:52 pm]
Searching for a safe alte...
by
dbannon
[September 14, 2024, 03:21:53 pm]
CAD program written in La...
by
zamtmn
[September 14, 2024, 02:02:21 pm]
[SOLVED] Cannot change la...
by
Guser979
[September 14, 2024, 01:40:45 pm]
programming with Lazarus
by
VisualLab
[September 14, 2024, 01:17:44 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: How to shutdown computer when idle (Read 1662 times)
Thaddy
Hero Member
Posts: 15518
Censorship about opinions does not belong here.
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
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.
Thaddy
Hero Member
Posts: 15518
Censorship about opinions does not belong here.
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
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.
ginoo
Jr. Member
Posts: 78
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: 15518
Censorship about opinions does not belong here.
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
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.
ginoo
Jr. Member
Posts: 78
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: 15518
Censorship about opinions does not belong here.
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
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.
ginoo
Jr. Member
Posts: 78
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