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
Hashids that you need but...
by
Thaddy
[
Today
at 06:10:34 am]
Recommended way to build ...
by
TRon
[
Today
at 06:02:51 am]
C++ conversion : what is ...
by
Thaddy
[
Today
at 05:44:34 am]
Setting the fpc path
by
TRon
[
Today
at 05:30:14 am]
Game Music Emulator
by
Guva
[
Today
at 05:25:58 am]
Bitmap 16bit R5G6B5
by
JZS
[
Today
at 05:13:29 am]
Incorrect FPC/Lazarus bui...
by
TRon
[
Today
at 04:58:15 am]
"Show Compiler Dialog"
by
JuhaManninen
[
Today
at 02:04:04 am]
Loading text data from a ...
by
carl_caulkett
[
Today
at 01:10:53 am]
Is there a better web-bro...
by
QEnnay
[September 17, 2024, 11:50:29 pm]
LazReport / FreeReport qu...
by
dseligo
[September 17, 2024, 11:37:59 pm]
Complex objects and JsonO...
by
Flea
[September 17, 2024, 11:02:28 pm]
Best way to exchange data...
by
cdbc
[September 17, 2024, 10:16:27 pm]
TListView.OnChange Event ...
by
msintle
[September 17, 2024, 10:11:04 pm]
Broken Icon Display on ma...
by
msintle
[September 17, 2024, 10:09:18 pm]
Compiler error when check...
by
ASerge
[September 17, 2024, 08:57:07 pm]
how to convert pdf to png...
by
zeljko
[September 17, 2024, 08:35:54 pm]
Simple multithreading cod...
by
MarkMLl
[September 17, 2024, 08:31:05 pm]
Golang vs free pascal
by
gidesa
[September 17, 2024, 08:27:08 pm]
Extended Module Player
by
TRon
[September 17, 2024, 06:32:25 pm]
Listview how to custom or...
by
VisualLab
[September 17, 2024, 05:48:48 pm]
Non-OS dependent way to u...
by
carl_caulkett
[September 17, 2024, 05:27:57 pm]
Problems with case statem...
by
MarkMLl
[September 17, 2024, 03:02:33 pm]
Tessellated Pattern: How ...
by
Boleeman
[September 17, 2024, 02:15:20 pm]
macOS 11 Cocoa headers
by
Hansaplast
[September 17, 2024, 12:44:49 pm]
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: How to shutdown computer when idle (Read 1675 times)
Thaddy
Hero Member
Posts: 15546
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: 15546
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: 15546
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: 15546
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