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
[Solved] Unable install l...
by
Thaddy
[
Today
at 09:22:00 am]
[Solved] PATCH method in ...
by
JohnnieK
[
Today
at 09:13:00 am]
Was:Forum Upgrade? by @Re...
by
MarkMLl
[
Today
at 08:44:09 am]
Forum is so SLOOOW... Aga...
by
Gustavo 'Gus' Carreno
[
Today
at 08:15:51 am]
Is there a "canonical" Gi...
by
dsiders
[
Today
at 08:04:09 am]
IDE odd behaviour
by
alpine
[
Today
at 07:38:13 am]
Terminal Component Availa...
by
JZS
[
Today
at 07:37:28 am]
CPU & Memory Profiler
by
AlexTP
[
Today
at 07:29:58 am]
LazCAD – First Release!
by
veb86
[
Today
at 07:04:18 am]
Problem with pasting text...
by
paweld
[
Today
at 06:22:36 am]
Browser User Agent & Frie...
by
Thaddy
[
Today
at 06:13:41 am]
Advice/Guidance Needed Wi...
by
dbannon
[
Today
at 06:07:33 am]
TStateMachine
by
avra
[
Today
at 12:44:55 am]
Lazarus IDE Windows 64 lo...
by
StuPot
[
Today
at 12:01:38 am]
My first Attempt making a...
by
jamie
[September 09, 2024, 11:43:32 pm]
Extended Module Player
by
Gigatron
[September 09, 2024, 09:11:48 pm]
How to disable the compat...
by
Jonas Maebe
[September 09, 2024, 08:59:30 pm]
How to create webhook in ...
by
Prakash
[September 09, 2024, 07:59:41 pm]
New Component jZCamView
by
Guser979
[September 09, 2024, 07:49:22 pm]
Forum upgrade?
by
MarkMLl
[September 09, 2024, 07:47:00 pm]
Is there a maximum length...
by
Remy Lebeau
[September 09, 2024, 07:35:30 pm]
THTTPRouter Documentation
by
JohnnieK
[September 09, 2024, 05:54:48 pm]
TryStrToFloat
by
jcmontherock
[September 09, 2024, 05:25:30 pm]
Having difficulty buidlin...
by
MarkMLl
[September 09, 2024, 03:49:23 pm]
Move a window between Wor...
by
dbannon
[September 09, 2024, 02:05:28 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: How to shutdown computer when idle (Read 1603 times)
Thaddy
Hero Member
Posts: 15496
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: 15496
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: 15496
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: 15496
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