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
Parameter passing odditie...
by
KodeZwerg
[
Today
at 12:04:57 pm]
Lazarus features in a non...
by
jollytall
[
Today
at 11:53:17 am]
Access violation when re-...
by
Chris Osborne
[
Today
at 11:43:49 am]
Ho Ho Ho IntraWeb in Laza...
by
irawan
[
Today
at 11:39:39 am]
FpDebug questions
by
Martin_fr
[
Today
at 11:25:02 am]
splitting an image
by
Dzandaa
[
Today
at 11:15:40 am]
how to tweek fpmake to co...
by
marcov
[
Today
at 10:35:11 am]
Can function be used for ...
by
Thaddy
[
Today
at 10:24:31 am]
Why isn't TTIRadioGroup's...
by
egsuh
[
Today
at 08:09:35 am]
Lazarus for Windows on aa...
by
Wallaby
[April 23, 2024, 11:46:56 pm]
(Solved) TIndexedAVLTree ...
by
lainz
[April 23, 2024, 10:49:03 pm]
Demo Scene Picture sinwav...
by
KodeZwerg
[April 23, 2024, 10:26:21 pm]
fkInternalCalc
by
zraja
[April 23, 2024, 09:31:07 pm]
A fairly simple sound sol...
by
KodeZwerg
[April 23, 2024, 09:23:37 pm]
add new targets to make
by
marcov
[April 23, 2024, 08:38:42 pm]
Quirky windows
by
ASerge
[April 23, 2024, 07:07:16 pm]
[Request] Demo Scene Sub ...
by
Gigatron
[April 23, 2024, 06:29:39 pm]
Unlocking Files
by
KodeZwerg
[April 23, 2024, 06:03:08 pm]
[SOLVED] trunk bug for mi...
by
Key-Real
[April 23, 2024, 05:56:32 pm]
Demo Scene Bitmap Font Sc...
by
Gigatron
[April 23, 2024, 05:56:27 pm]
Compile/Convert Delphi pr...
by
Martin_fr
[April 23, 2024, 05:43:11 pm]
Generics - correct syntax
by
Thaddy
[April 23, 2024, 05:40:59 pm]
InstallAware Using Lazaru...
by
msintle
[April 23, 2024, 05:26:36 pm]
Xcode Command Line Tools ...
by
Joseph
[April 23, 2024, 05:16:39 pm]
Offical launch of the 1 B...
by
Hartmut
[April 23, 2024, 04:49:29 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug: setting ModalResult of a form closes the entire app (Read 2248 times)
AlexTP
Hero Member
Posts: 2406
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: 2406
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: 14384
Sensorship about opinions does not belong here.
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
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.
AlexTP
Hero Member
Posts: 2406
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