Watch, Follow, &
Connect with Us
Public Report
Report From: EDN/Member services    [ Add a report in this area ]  
Report #:  141326   Status: Reported
Mac Only Unable to hide Main Window while displaying secondary window.
Project:  EDN Build #:  14393
Version:    2 Submitted By:   Kenneth Davis
Report Type:  Issue Date Reported:  4/12/2017 8:38:08 AM
Severity:    Serious / Highly visible problem Last Updated:
Platform:    All platforms Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
On the Mac OS X side only. When trying to display a secondary form while hiding the main form all forms become hidden. Normally I create the forms as they are needed, but there seems to be other issues. Randomly I get exceptions on the mac side during activation, while hiding mainframe and creating a secondary form. I suppect threads are stepping on each other, but can't recreate it effectly enough to report that issue. So I am reporting what I can produce and maybe you find other issues.
Steps to Reproduce:
Use the attached program to recreate the issue on the mac side.
Workarounds
The problem seems in the FMX.Platform.Mac.pas code. I can patch around the issue by commenting out the following code on the HideWindow:

{Patchedf: Begin - Removing Code
    if (Application <> nil) and (Application.MainForm = AForm) and not FHideUnhideApp then
      NSApp.Hide(Self)
    else
    begin
Patched: End}
.
.
.
{Patchedf: Begin - Removing Code
    end;
Patched: End}

I also remove the same code in the ShowWindow:

{Patchedf: Begin - Removing Code
    if (Application <> nil) and (Application.MainForm = AForm) and not FHideUnhideApp then
      NSApp.unhideWithoutActivation
    else
    begin
Patched: End}
.
.
.
{Patchedf: Begin - Removing Code
    end;
Patched: End}
Attachment
None
Comments

None

Server Response from: ETNACODE01