You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid cast from 'WinRT.IInspectable' to 'IMemoryBufferByteAccess' (GeneratedComInterface) #1672
Yeah this is caused by the fact we're not shipping the .NET 8 TFM yet, so this is expected. That said, it definitely shouldn't be needed to manually define IMemoryBufferByteAccess, do interop with that interface and use that directly just to get data out of an IMemoryBufferReference instance. I've opened #1673 to add a helper API to do this much more easily (and efficiently) 🙂
Activity
dongle-the-gadget commentedon Jul 14, 2024
GeneratedComInterfaceisn’t allowed right now as the NuGet version does not contain the .NET 8WinRT.Runtimethat contains this functionality.Sergio0694 commentedon Jul 15, 2024
Yeah this is caused by the fact we're not shipping the .NET 8 TFM yet, so this is expected. That said, it definitely shouldn't be needed to manually define
IMemoryBufferByteAccess, do interop with that interface and use that directly just to get data out of anIMemoryBufferReferenceinstance. I've opened #1673 to add a helper API to do this much more easily (and efficiently) 🙂