-
Notifications
You must be signed in to change notification settings - Fork 507
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
Possible bug with DECIMAL
type in VARIANT
#2876
Comments
Did you try https://github.com/microsoft/windows-rs/releases/tag/0.53.0
|
Oh my... 0.53 is a really hefty change to what we've been using. I can't seem to figure out how to get my IDispatch out of the VARIANT now... |
Well... @kennykerr, I already had support for converting all of the various |
Let's keep the conversation in one place. Closing as duplicate of #2877. |
Summary
I've been looking around at supporting
VARIANT
.I had a bit of trouble but found a good way to deal with
BSTR
. It contains a pointer in mem and therefore theVARIANT_0_0_0
member for it is aManuallyDrop
You can see that in the drop for
BSTR
the memory is deallocated from windows.I started looking at
DECIMAL
support inVARIANT_0_0_0
and it looks like it takes a pointer to aDECIMAL
I would have expected it to take some kind of
ManuallyDrop<DECIMAL_WRAPPER>
that surrounds a pointer to the innards.If I get a
VARIANT
of this type as a result of a COM call, do I need to worry about the pointer to theDECIMAL
? Who owns that memory? How does it get cleaned up?Crate manifest
No response
Crate code
No response
The text was updated successfully, but these errors were encountered: