I'm trying to use David Anson's VirtualFileDataObject (as shipped in this NuGet package), and there's a few problems I'm running into. One occurs when passing an async void to the StreamContents property. This will work fine: Dim descriptor As New VirtualFileDataObject.VirtualFileDataObject.FileDescriptor With { .Name = info.FileName, .StreamContents = Sub(s) Dim [...] read more
C#, full .NET 4.7 framework Here is the code to demonstrate the problem. Console applications, single thread. static void Main() { var appType = System.Type.GetTypeFromProgID("Word.Application"); dynamic app = System.Activator.CreateInstance(appType); dynamic documents = app.Documents; object ConfirmConversions = false; dynamic document = documents.Open(@"document.docx", ref ConfirmConversions); var b1 = true; var b2 = [...] read more
I've been Googling a lot for this but no one seems to be talking about this issue. I have a COM component written in C++ that exposes events ("connection points" in COM parlance). This component (a map control) has been used reliably for several years by clients written in C++ [...] read more