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
Lazarus 3.0 on linux
by
Codrut1001
[
Today
at 07:03:07 pm]
BGRA Controls Install Lat...
by
andrew Bubble
[
Today
at 06:56:53 pm]
how to change color of a ...
by
Sino7524
[
Today
at 06:10:49 pm]
What is the meaning of TF...
by
Hartmut
[
Today
at 05:35:18 pm]
ImGui FreePascal Binding ...
by
Coldzer0
[
Today
at 05:28:50 pm]
Can't build a project gro...
by
MarkMLl
[
Today
at 05:22:14 pm]
TFileStream.ReadAnsiStrin...
by
simone
[
Today
at 05:16:57 pm]
Why cannot this be inline...
by
Stefan Glienke
[
Today
at 05:05:12 pm]
TPath enhancements (Issue...
by
VisualLab
[
Today
at 04:47:46 pm]
Sleep forever
by
jollytall
[
Today
at 03:56:12 pm]
jwabcrypt unit is missing
by
fpc_2024
[
Today
at 03:08:24 pm]
Problems with accentuatio...
by
Gercino
[
Today
at 02:47:54 pm]
Lazarus Install PI5 Bookw...
by
paweld
[
Today
at 01:36:00 pm]
Conscious Artificial Inte...
by
Dzandaa
[
Today
at 01:07:14 pm]
BGRABitmap - showcase -
by
Mongkey
[
Today
at 11:14:36 am]
Patt - a small ball bounc...
by
thehay95
[
Today
at 11:06:17 am]
Windows API and wide/unic...
by
marcov
[
Today
at 10:49:07 am]
Huge problem with open fi...
by
dseligo
[
Today
at 10:09:29 am]
[SOLVED] TPanel slider po...
by
Thaddy
[
Today
at 09:21:09 am]
Lazarus corrupted my enti...
by
Martin_fr
[
Today
at 08:50:09 am]
GUI for ChatGPT (yarvis)
by
Thaddy
[
Today
at 07:46:19 am]
Lazarus IDE Windows "stuc...
by
Tony Stone
[
Today
at 01:47:54 am]
[SOLVED] Does using TTime...
by
EganSolo
[November 28, 2023, 11:38:26 pm]
Anyone interested in test...
by
PascalDragon
[November 28, 2023, 09:23:21 pm]
[SOLVED]Diferences in Gen...
by
janasoft
[November 28, 2023, 09:05:14 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug: setting ModalResult of a form closes the entire app (Read 1527 times)
AlexTP
Hero Member
Posts: 2287
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: 2287
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: 13235
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: 2287
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