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
Forum upgrade?
by
Joanna
[
Today
at 07:14:26 pm]
LazCAD – First Release!
by
zamtmn
[
Today
at 07:11:13 pm]
Problem with pasting text...
by
LV
[
Today
at 06:56:55 pm]
IDE odd behaviour
by
Martin_fr
[
Today
at 06:25:13 pm]
PATCH method in fphttpcli...
by
JohnnieK
[
Today
at 05:57:38 pm]
THTTPRouter Documentation
by
JohnnieK
[
Today
at 05:54:48 pm]
TryStrToFloat
by
jcmontherock
[
Today
at 05:25:30 pm]
My first Attempt making a...
by
jamie
[
Today
at 04:10:52 pm]
Having difficulty buidlin...
by
MarkMLl
[
Today
at 03:49:23 pm]
Is there a maximum length...
by
Martin_fr
[
Today
at 02:18:31 pm]
New Component jZCamView
by
c4p
[
Today
at 02:06:39 pm]
Move a window between Wor...
by
dbannon
[
Today
at 02:05:28 pm]
Loosing mouse clicks when...
by
Wilko500
[
Today
at 12:51:41 pm]
TStateMachine
by
matthius
[
Today
at 12:51:16 pm]
Forum is so SLOOOW... Aga...
by
Marc
[
Today
at 12:29:35 pm]
How to disable the compat...
by
salvadordf
[
Today
at 11:29:02 am]
[SOLVED] Need help to use...
by
marcov
[
Today
at 10:13:45 am]
AI, NLP and CAI: Text Gen...
by
schuler
[
Today
at 06:24:11 am]
Advice/Guidance Needed Wi...
by
Aruna
[
Today
at 06:05:58 am]
Using Lua 5.4 with Free P...
by
Roland57
[
Today
at 05:14:59 am]
How to open Folder and se...
by
Remy Lebeau
[
Today
at 01:57:02 am]
the initial method
by
Remy Lebeau
[
Today
at 01:44:56 am]
Cell location in spreadsh...
by
wp
[September 08, 2024, 11:38:20 pm]
How to render a TTF to a ...
by
axel18
[September 08, 2024, 07:31:04 pm]
BINGO application.
by
seghele0
[September 08, 2024, 06:49:49 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: How to shutdown computer when idle (Read 1589 times)
Thaddy
Hero Member
Posts: 15494
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: 15494
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: 15494
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: 15494
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