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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Interesting article about...
by
LV
[
Today
at 07:59:18 am]
Bug in string concatenati...
by
Thaddy
[
Today
at 06:44:14 am]
had a question and found ...
by
TRon
[
Today
at 06:27:02 am]
Starting a program with h...
by
jeremiah
[
Today
at 02:32:28 am]
Adlib Player
by
Gigatron
[
Today
at 01:57:12 am]
Is it possible to do git ...
by
Warfley
[
Today
at 12:38:51 am]
MQTT devices for Home Ass...
by
nicolap
[
Today
at 12:37:19 am]
Draw Transparent Fill Rec...
by
lainz
[
Today
at 12:16:54 am]
I have created dll in gol...
by
Packs
[December 11, 2024, 11:14:14 pm]
[Solved] Crosshair error ...
by
wp
[December 11, 2024, 10:39:23 pm]
Adding interfaces to any ...
by
lainz
[December 11, 2024, 10:29:51 pm]
Anyone doing Advent of Co...
by
therealhades
[December 11, 2024, 09:47:15 pm]
2048 game
by
Chronos
[December 11, 2024, 07:40:27 pm]
FPC port to 9front
by
marcov
[December 11, 2024, 07:27:07 pm]
Fatal: (10022) Can't find...
by
emersonline
[December 11, 2024, 07:25:37 pm]
[SOLVED] How to save a Gr...
by
Hartmut
[December 11, 2024, 05:17:16 pm]
Controlled Folder Access
by
Igor Kokarev
[December 11, 2024, 04:12:30 pm]
Serial Port using tvsComP...
by
Dzandaa
[December 11, 2024, 03:44:02 pm]
Stdout from program
by
Gyuri
[December 11, 2024, 03:16:13 pm]
Common File Dialogs Have ...
by
rvk
[December 11, 2024, 01:50:24 pm]
MainMenu: How to use the ...
by
madref
[December 11, 2024, 11:15:54 am]
[Solved!] DBLookupListBox...
by
heebiejeebies
[December 11, 2024, 09:27:03 am]
The Silver Coder on YouTu...
by
silvercoder70
[December 11, 2024, 08:48:41 am]
Random errors in TensorFl...
by
jollytall
[December 11, 2024, 08:29:13 am]
SAVE StringGrid to PDF
by
dseligo
[December 11, 2024, 02:40:40 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug: setting ModalResult of a form closes the entire app (Read 2537 times)
AlexTP
Hero Member
Posts: 2488
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: 2488
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: 16197
Censorship 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
If I smell bad code it usually is bad code and that includes my own code.
AlexTP
Hero Member
Posts: 2488
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