Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Widgetset
»
GTK
»
Bug: setting ModalResult of a form closes the entire app
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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Feature announcement: Fun...
by
wfbhappy
[
Today
at 02:44:42 am]
[SOLVED] Strange behavior...
by
jamie
[
Today
at 12:08:12 am]
Postgres, ZEOS and Visual...
by
andersonscinfo
[January 18, 2026, 11:01:09 pm]
ThemeServices.OnThemeChan...
by
sgj
[January 18, 2026, 10:37:32 pm]
AVRPascal – free code edi...
by
ackarwow
[January 18, 2026, 10:18:12 pm]
Developing FreePascal on ...
by
ccrause
[January 18, 2026, 09:34:54 pm]
help implementing frexp
by
srvaldez
[January 18, 2026, 09:25:07 pm]
my implementation of frex...
by
srvaldez
[January 18, 2026, 06:27:39 pm]
Rolling releases Lazarus[...
by
Martin_fr
[January 18, 2026, 04:37:42 pm]
Strings in Free Pascal: I...
by
PascalDragon
[January 18, 2026, 04:13:36 pm]
Question about optimizer ...
by
PascalDragon
[January 18, 2026, 04:01:54 pm]
Adjacent rectangles not a...
by
jamie
[January 18, 2026, 02:36:34 pm]
Very simple Style Manager...
by
sgj
[January 18, 2026, 02:21:54 pm]
How to set the Excel cell...
by
dodgex
[January 18, 2026, 02:06:25 pm]
PeaZip project turns 20 t...
by
JanRoza
[January 18, 2026, 01:57:46 pm]
How to implement multiple...
by
bills
[January 18, 2026, 01:26:29 pm]
AdvancedHTTPServer: A Go-...
by
CynicRus
[January 18, 2026, 12:48:43 pm]
RPNCalc in Lazarus
by
jwdietrich
[January 18, 2026, 12:13:43 pm]
Is this Pascal Compiler t...
by
HKPhysicist
[January 18, 2026, 11:11:59 am]
Maze Makers: Modified Cyl...
by
Boleeman
[January 18, 2026, 08:51:29 am]
Olympic Rings (Interleave...
by
Boleeman
[January 18, 2026, 04:28:24 am]
Unit decfloat
by
MathMan
[January 17, 2026, 08:29:41 pm]
Funny
by
Ten_Mile_Hike
[January 17, 2026, 08:18:39 pm]
New book on Object Pascal
by
Ten_Mile_Hike
[January 17, 2026, 07:34:06 pm]
New open source component...
by
salvadordf
[January 17, 2026, 06:26:56 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug: setting ModalResult of a form closes the entire app (Read 2934 times)
AlexTP
Hero Member
Posts: 2669
Bug: setting ModalResult of a form closes the entire app
«
on:
March 15, 2022, 05:57:26 pm »
Maybe someone can find the time to reproduce it and debug?
As I see - setting ModalResult of a helper form, to any value (e.g. mrYes) - quits the entire app!
Only on gtk2 (works OK on qt5 / win32).
https://github.com/Alexey-T/CudaText/issues/3990
I tried to make a simple repro demo, but no repro! So to repro this, you need to compile CudaText project on gtk2.
What happens: setting ModalResult to form fmConfirmReplace (in OnKeyDown handler which handles 'y' key; or by pressing the Yes button) closes the entire app!
«
Last Edit: March 15, 2022, 06:50:00 pm by AlexTP
»
Logged
CudaText editor
-
ATSynEdit
-
More from me
AlexTP
Hero Member
Posts: 2669
Re: Bug: setting ModalResult of a form closes the entire app
«
Reply #1 on:
March 15, 2022, 06:06:10 pm »
Details:
- Linux Ubuntu 20 x64
- Lazarus: HEAD detached at 23b2324f9f (just before Qt5Pas new fix)
- Free Pascal Compiler version 3.2.3-587-g65733801e5-dirty [2022/02/13] for x86_64
- optimization=0 for the main project
How to compile the project:
https://wiki.freepascal.org/CudaText#How_to_compile_CudaText
«
Last Edit: March 15, 2022, 06:17:22 pm by AlexTP
»
Logged
CudaText editor
-
ATSynEdit
-
More from me
Thaddy
Hero Member
Posts: 18676
Jungle wars. And failing health it seems.
Re: Bug: setting ModalResult of a form closes the entire app
«
Reply #2 on:
March 15, 2022, 08:18:39 pm »
Check the ownership? This only happens when the main form, or probably even the application, is the owner.
This is only a debugging hint.
Logged
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
AlexTP
Hero Member
Posts: 2669
Re: Bug: setting ModalResult of a form closes the entire app
«
Reply #3 on:
March 16, 2022, 09:18:36 am »
Thanks - I tried to change owner of that form
a) in the CudaText (to nil);
b) in the repro-demo (to the main form);
but it did not help with 2 cases.
Logged
CudaText editor
-
ATSynEdit
-
More from me
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Widgetset
»
GTK
»
Bug: setting ModalResult of a form closes the entire app
TinyPortal
© 2005-2018