-
Notifications
You must be signed in to change notification settings - Fork 254
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
Conversation
Signed-off-by: Jiyun Yang <[email protected]>
Signed-off-by: Jiyun Yang <[email protected]>
Signed-off-by: Jiyun Yang <[email protected]>
Internal API ChangedAdded: 2, Removed: 0, Changed: 0Added+ /// <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)
|
There was a problem hiding this 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.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh Okay!
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