rcw Questions

2

Solved

With this code, I am opening excel(with visible = false so the user cannot see it), writing to a workbook, and then either opening excel(making it visible) after the script ends or closing it compl...
Hemihydrate asked 29/3, 2019 at 18:4

2

I am using COM interop for creating a managed plugin into an unmanaged application using VS2012/.NET 4.5/Win8.1. All the interop stuff seems to be going ok, but when I close the app I get an MDA ex...
Monkhood asked 4/12, 2013 at 9:37

5

Solved

I have an application that uses Office interop assemblies. I am aware about the "Runtime Callable Wrapper (RCW)" managed by the runtime. But I am not very sure how the reference count gets incremen...
Cosgrove asked 4/1, 2011 at 8:15

1

Solved

A way to tell if the COM Object's reference count has reached 0 is by attempting to access one of its members and catch the resulting InvalidComObjectException, which is not very elegant and doesn'...
Ravo asked 19/11, 2013 at 23:37

2

Solved

Note: For background information please see this related question: How to get LINQPad to Dump() System.__ComObject references? I am able to retrieve the CLSID of the RCW class corresponding to a C...
Disreputable asked 7/2, 2013 at 17:6

1

I am playing around with using LINQPad to rapidly develop small ArcObjects (a COM-based library for ESRI's ArcGIS software) applications and have had some success in using it to Dump() the properti...
Montanez asked 5/2, 2013 at 21:5

1

Solved

Is it just the way the bytes are combined to "encode" the data? I'm curious because I wonder how an RCW automatically takes a .NET string and transforms it into a COM BSTR. I'm guessing it just fo...
Fish asked 21/6, 2011 at 0:34

2

Solved

After execution both of the following test cases, a COM execution is printed to the console. What am I doing wrong? If I run either test singly, or if I run both tests together, the exception is w...
Combination asked 3/6, 2011 at 21:28

2

Solved

Is it possible to increase the RCW reference count on an unknown interface? (i.e. not the reference count on the underlying COM object) I have some old COM server code int Method1(object comobjec...
Gibbs asked 22/4, 2010 at 10:16

1

Solved

Until recently, I believed that the .NET runtime only increases the reference count of COM objects by 1 when creating a runtime-callable wrapper, and that only one such runtime-callable wrapper is ...
Continence asked 2/4, 2010 at 14:43

1

Solved

I have read a lot of articles on the net about releasing RCW's safely, and it seems to me that no one can agree on exactly what needs to be done in what order, so I'm asking you guys for your opini...
Tropicalize asked 2/12, 2009 at 18:41

1

Solved

VS2008, .NET 2, VB.NET, XP ... I have a Windows form, with a WebBrowser control and a Close button, which just does a Me.Close. The form's cancel button is set to the Close button, so that I can ...
Highkeyed asked 9/12, 2009 at 15:9

1

Solved

BACKGROUND I am automating an PowerPoint 2007 via C# I am writing unittests using the built-in unit testing of Visual Studio (Microsoft.VisualStudio.TestTools.UnitTesting) for my code I am well r...
Costermonger asked 13/7, 2009 at 5:22

3

Solved

I am trying to produce a C# wrapper for a COM object that I have (named SC_COM.dll), but am having some issues linking it with Visual Studio 2008 (running Vista). I need to do this registration-fre...
Ellery asked 1/6, 2009 at 17:9
1

© 2022 - 2024 — McMap. All rights reserved.