Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NUI] Make Window events safe while window is being collected #6503

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

rabbitfor
Copy link
Collaborator

Description of Change

Ref : https://github.sec.samsung.net/NUI/OneUIComponents/issues/6

Make Windows's native event callbacks not collected before native window is released.
Add guard for window callbacks to check disposal.

API Changes

  • ACR:

@github-actions github-actions bot added the API12 Platform : Tizen 9.0 / TFM: net6.0-tizen9.0 label Dec 9, 2024
@TizenAPI-Bot
Copy link
Collaborator

Internal API Changed

Added: 2, Removed: 0, Changed: 0

Added

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Void Tizen.NUI.BaseHandle::AddToNativeHolder(System.Object)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Void Tizen.NUI.BaseHandle::RemoveFromNativeHolder(System.Object)

Copy link
Contributor

@everLEEst everLEEst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@Seoyeon2Kim Seoyeon2Kim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment

}
}
}

void CreateSafeCallback<T>(T method, out T safeCallback) where T : Delegate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To maintain consistency with NUI coding rule, could you add internal or private to these functions here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your comment. I will make another commit to add private keyword because this patch is to sync with this patch in DevelNUI branch so it would not be good to have any changes with it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh Okay!

@rabbitfor rabbitfor merged commit 54aecd3 into Samsung:API12 Dec 10, 2024
3 checks passed
@rabbitfor rabbitfor deleted the rootingAPI12 branch December 10, 2024 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API12 Platform : Tizen 9.0 / TFM: net6.0-tizen9.0 Internal API Changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants