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
IRC channel
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
How can I capture all key...
by
Handoko
[
Today
at 05:21:56 am]
general reference manual ...
by
Curt Carpenter
[
Today
at 03:52:39 am]
Are We Dead Yet?
by
dbannon
[
Today
at 03:33:02 am]
Changes in "Search Result...
by
n7800
[
Today
at 03:13:36 am]
TBufferDataSet List Index...
by
eldonfsr
[
Today
at 01:54:18 am]
How to download a file fr...
by
jmpessoa
[
Today
at 01:44:30 am]
[SOLVED] LAMW BackButton ...
by
maurobio
[
Today
at 01:12:12 am]
any one knows how to set ...
by
dbannon
[
Today
at 01:10:22 am]
Clean up at ide/include/i...
by
Bart
[June 03, 2023, 11:03:10 pm]
Tips for deep debuging of...
by
Grew
[June 03, 2023, 10:46:22 pm]
discarding an array
by
robert rozee
[June 03, 2023, 09:54:10 pm]
TSynEdit crashes when loa...
by
Martin_fr
[June 03, 2023, 09:37:47 pm]
How to create form in thr...
by
PascalDragon
[June 03, 2023, 07:22:32 pm]
Who uses "caret past EOL"...
by
Martin_fr
[June 03, 2023, 06:34:39 pm]
array of array of type?
by
jamie
[June 03, 2023, 04:42:22 pm]
if then else syntax
by
jamie
[June 03, 2023, 04:37:44 pm]
how to do a HTTP POST wit...
by
rvk
[June 03, 2023, 03:51:05 pm]
[SOLVED] SynEdit resize t...
by
Hansvb
[June 03, 2023, 03:42:16 pm]
[SOLVED] Help for downloa...
by
magleft
[June 03, 2023, 11:32:31 am]
Two issues related to fcl...
by
wp
[June 03, 2023, 11:07:07 am]
ANN: ODBC DAC under GNU G...
by
Andrey Zubik
[June 03, 2023, 01:14:38 am]
LAMW - (SOLVED) simple es...
by
Mongkey
[June 03, 2023, 12:20:54 am]
Fast Base64 encoding/deco...
by
mika
[June 02, 2023, 10:53:10 pm]
help choosing laptop
by
Leledumbo
[June 02, 2023, 08:18:27 pm]
TStringGrid : Conflict be...
by
Nel_Fie
[June 02, 2023, 06:17:51 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug: setting ModalResult of a form closes the entire app (Read 1007 times)
AlexTP
Hero Member
Posts: 2118
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: 2118
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: 12974
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
I actually get compliments for being rude... (well, Dutch, but that is the same)
AlexTP
Hero Member
Posts: 2118
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