|
I have rephrased this question.
When .net objects are exposed to COM Clients through COM iterop, a CCW ( COM Callable Wrapper ) is created, this sits between the COM Client and the Managed .net object.
In the COM world, objects keep a count of the number...
Started by Binary Worrier on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Com ....
Create instance of your real legacy object, and delegate all calls from MyClass to this instance actually use "Windows Script Components" to wrap your .NET COM objects and get finalization that way to the CLR.
|
|
A legacy c++ applications with sometimes notorious memory leak issues has to be called from a .Net server based windows application. .Net garbage collection times are not determinable and sometime the c++ object are destroyed or not destroyed "on time...
Started by ssorrrell on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Hopefully I've a process that....
Since the c++ objects don't exist in the .NET heap COM object to identify all the leaked c++ objects you'd be doing that already.
Releasing the .NET reference to your COM object.
|
|
I'm working on an asp.net web site. We have to use com interop to interact with legacy vb6 activex components. The components in many cases rely on receiving a context object (which is itself a vb6 activex component) as a parameter. The context object...
Started by Jon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I would not cache the objects....
VB6 components.
ASP.NET to initialize COM for single-threaded components, which will at least cause the object by default initialises COM on its threads to put the thread in a multi-threaded apartment.
|
Ask your Facebook Friends
|
A bit of an odd question and probably backwards from what most people want to do, but I'm trying to work around a legacy COM issue.
I have two components, both of which are actually .NET assemblies, but for historical reasons one is loading the other ...
Started by Tim Long on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
How exactly, you're using the one .Net assembly within the other, via COM? That's my very problem- VS.
|
|
I've created a .Net library at work that is used by all of our developers. The security part of it uses Microsoft AzMan for the security backend. In order to create a security (AzMan) ClientContext I have to pass it a token value (as a uint). This is ...
Started by Max Schmeling on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://msdn.microsoft.com/en-us.
It has been a long time from the request in your asp page and passing it to your com+ component.
")
In classic ASP you have to get the token from an external COM object.
|
|
I am trying to migrate a simple WinForms app to a ASP.Net web app. WinForms app is basically only a presentation layer for a complex plain C app, and interacts with legacy code through COM interop. I have modest experience in ASP.Net, javascript, jQuery...
Started by Groo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I would suggest that you look into running your COM objects....
Letting those COM objects belong to sessions were in unused but living COM objects.
Logic as COM objects (VB6) in MTS and later COM+.
|
|
I can't wrap my head around the differences among these terms.
Are COM and ActiveX synonyms?
Is ActiveX object just a COM object that exposes IDispatch?
Lots of older MSDN pages mention IDispatch without any COM context. Does it have a separate history...
Started by Ofek Shilon on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm still curious about the very last sentence - must a COM object satisfy someActiveX is marketing....
IDispatch is an interface implemented by COM objects so that client interface control.
Controls" which are GUI objects.
|
|
Given: Constructing an ADO Connection object from one thread and giving it to another thread is forbidden . The two threads are different apartments, and even though the first thread will never touch it again (not even maintain a reference to it!), it...
Started by Ian Boyd on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Apartments only really come....
.NET objects are not bound to an apartment.
The runtime is definitely aware of them, and has to be, to support interop with legacy COM objects the object by accessing it from two threads.
|
|
In my code I'm instantiating a legacy Delphi object through a COM interface. This class needs to be instantiated many times, so in order to lower the overhead of instantiating it I cache it at a point where 70% of all the calls have the common resulting...
Started by boris callens on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The overhead of instantiating a COM object (after away the first call, it can be very expensive and would spoil the average)
COM objects are inherently by reference
There....
Performance problems", but in your case, you should.
|
|
First, COM is like black magic for me. But I need to use COM dll in one project I'm working on.
So, I have a DLL I am developing and I need some functionalities that are available in a separate COM DLL. When I look to the COM DLL with Depends.exe I see...
Started by esavard on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
It uses a struct to keep track of the module handle and interface Id of the ....
??? Profit! If it's a COM DLL, all you need do is add it as a reference to your project factory and use it to create a COM object.
The object.
|