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
Out of memory on a ATtiny...
by
pascalbythree
[
Today
at 03:42:00 pm]
Noting responds when send...
by
pascalbythree
[
Today
at 03:36:40 pm]
Mediators and Indexed Pro...
by
Weitentaaal
[
Today
at 03:28:23 pm]
Windows API and wide/unic...
by
cdbc
[
Today
at 03:10:48 pm]
Better Vectorcall Support
by
Madoc
[
Today
at 02:09:07 pm]
Help with barcode scannin...
by
kwyan
[
Today
at 02:03:44 pm]
[SOLVED]Bash commands and...
by
johnathan
[
Today
at 01:17:57 pm]
Best practices to use tRt...
by
Mr.Madguy
[
Today
at 12:48:45 pm]
ImGui FreePascal Binding ...
by
Coldzer0
[
Today
at 12:44:00 pm]
Sleep forever
by
jollytall
[
Today
at 11:16:16 am]
LazReport designer math f...
by
nouzi
[
Today
at 10:26:26 am]
[SOLVED] Lazarus 3.0 on l...
by
Codrut1001
[
Today
at 10:25:08 am]
[SOLVED] Simple (I hope) ...
by
dbannon
[
Today
at 10:20:49 am]
Huge problem with open fi...
by
MarkMLl
[
Today
at 08:24:33 am]
BGRA Controls
by
paweld
[
Today
at 07:53:16 am]
What is the meaning of TF...
by
kwyan
[
Today
at 07:04:14 am]
Un-register an LCL Compon...
by
dbannon
[
Today
at 04:58:57 am]
[SOLVED] TPanel slider po...
by
Handoko
[
Today
at 04:07:12 am]
how to change color of a ...
by
Handoko
[
Today
at 03:26:35 am]
Date-Stamp DBDateEdit
by
Handoko
[
Today
at 03:16:12 am]
Chinese input in edit and...
by
myisjwj
[
Today
at 03:13:57 am]
Any library to generate a...
by
Martin_fr
[
Today
at 01:29:56 am]
Absolute positioning of c...
by
dseligo
[
Today
at 01:06:11 am]
Online Package Manager
by
lainz
[November 29, 2023, 10:34:18 pm]
BGRA Controls Install Lat...
by
andrew Bubble
[November 29, 2023, 08:43:54 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Bug: setting ModalResult of a form closes the entire app (Read 1545 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: 13243
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