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

Fix value type caching #932

Merged
merged 5 commits into from
Jul 30, 2021
Merged

Conversation

ujjwalchadha
Copy link
Contributor

This fixes the issue with value types being cached and not garbage collected thus causing a problem when a native pointer is recycled and pointed to a value type before. This PR creates a ABI.System.Nullable<> wrapper on the type, thus allowing recreation.

@ujjwalchadha ujjwalchadha requested a review from manodasanW July 30, 2021 05:37
@ujjwalchadha ujjwalchadha merged commit 8e04090 into master Jul 30, 2021
@ujjwalchadha ujjwalchadha deleted the ujjwalchadha/fix_value_type_caching_2 branch July 30, 2021 06:12
ujjwalchadha added a commit that referenced this pull request Aug 28, 2021
ujjwalchadha added a commit that referenced this pull request Aug 31, 2021
* revert incorrect Fix for value type caching (#932)

This reverts commit 8e04090.

* Added conditionalweaktable reference to native value type

* Refactor

* Moved cache to ComWrappersSupport

* Added cache factory for String and type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copying the dictionary of properties on a PnpObject results in some properties returning the wrong type.
4 participants