473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Do ActiveX objects run in their own process?

Do ActiveX objects run in their own process or app domain? Referecing this
article http://www.codeproject.com/buglist/iefix.asp, he gets events from
ActiveX object to his IE object via marshalling. I thought marshalling was
use for communication between processes. General comments to clarify are
welcome.

If something is running in another app domain (within the same process), do
I need to use marshalling to communicate with it or is Reflection used
instead?

Thanks,
Brett
Nov 17 '05 #1
3 1956
Do ActiveX objects run in their own process or app domain?
In general no (though it is possible to create out-of process ActiveX
servers).

I thought marshalling was
use for communication between processes. General comments to clarify are
welcome.
Marshaling is needed whenever you need to transform data from one
representation or context to another. In this case it refers to the
work of translating between COM automation types and .NET types or
vice versa.

If something is running in another app domain (within the same process), do
I need to use marshalling to communicate with it or is Reflection used
instead?


Yes there will be some marshaling work taking place, but it's pretty
well hidden by Remoting.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 17 '05 #2

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Do ActiveX objects run in their own process or app domain?


In general no (though it is possible to create out-of process ActiveX
servers).

I thought marshalling was
use for communication between processes. General comments to clarify are
welcome.


Marshaling is needed whenever you need to transform data from one
representation or context to another. In this case it refers to the
work of translating between COM automation types and .NET types or
vice versa.

If something is running in another app domain (within the same process),
do
I need to use marshalling to communicate with it or is Reflection used
instead?


Yes there will be some marshaling work taking place, but it's pretty
well hidden by Remoting.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Thanks. Perhaps you have a suggestion for a particular problem I'm having
with IE, related to the above. I get the DocumentComplete event but as
mentioned on the link I provided, its timing is off. So the event fires
before the page has completely loaded. This is an issue with how .NET
handles the events. I did try the IE ActiveX object on a form and
marshalled the events into .NET (example in link). That worked fine.
However, my app doesn't have forms so I can't use the ActiveX object.

When the IE DocumentComplete() event fires, it goes from COM to .NET and
this throws off the timing. Do you know of any possible way to detect that
a (non ActiveX) IE page has completely rendered? I'm open to any ideas.

Thanks,
Brett
Nov 17 '05 #3

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Do ActiveX objects run in their own process or app domain?


In general no (though it is possible to create out-of process ActiveX
servers).

I thought marshalling was
use for communication between processes. General comments to clarify are
welcome.


Marshaling is needed whenever you need to transform data from one
representation or context to another. In this case it refers to the
work of translating between COM automation types and .NET types or
vice versa.

If something is running in another app domain (within the same process),
do
I need to use marshalling to communicate with it or is Reflection used
instead?


Yes there will be some marshaling work taking place, but it's pretty
well hidden by Remoting.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Thanks. Perhaps you have a suggestion for a particular problem I'm having
with IE, related to the above. I get the DocumentComplete event but as
mentioned on the link I provided, its timing is off. So the event fires
before the page has completely loaded. This is an issue with how .NET
handles the events. I did try the IE ActiveX object on a form and
marshalled the events into .NET (example in link). That worked fine.
However, my app doesn't have forms so I can't use the ActiveX object.

When the IE DocumentComplete() event fires, it goes from COM to .NET and
this throws off the timing. Do you know of any possible way to detect that
a (non ActiveX) IE page has completely rendered? I'm open to any ideas.

Thanks,
Brett
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: AnalogKid | last post by:
Short question: What's the difference between SingleUse and MultiUse ? Long question: I've been writing some sample code to see how different Instancing values and threading models work. I...
6
by: Pippen | last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and what is Visual Basic and what is VBScript. Can someone please point me to a website, recommend a book or if I've missed...
2
by: Berata | last post by:
Hello all, in VB6 we were able to create ActiveX-DLL's (In Process Components) and ActiveX-Exe's (Out of Process Components). We habe build up an application that exists of an main module...
4
by: rufus | last post by:
Hi, On the project I am working on we need to encapsulate all data and business logic in an activex dll. My question is: How do I do this? How can I access the form objects ie text boxes,...
3
by: seaweed | last post by:
Hi, all. I am a beginner. If C# can not be used to ActiveX control, How can I do? Thank you in advance.
6
by: Tom Leylan | last post by:
Hope this is an easy question. I have a multi-tier app written in VB where the server tier is an ActiveX .EXE project. I'm going to convert it to VB.Net and I'm not sure what to choose as the...
1
by: Frank | last post by:
Short Version of Question: Can anyone provide an example of how I should embed the ActiveX and license, and then use it in a function?
1
by: Simon | last post by:
Hi all, I recently posted about an issue I was having which no-one could help with, but I have researched some more and have discovered something very strange... I have a C# dll in the GAC...
4
by: Oriane | last post by:
Hi there, I need to use an ActiveX inside a Web service. My problem is that I need an handle on this Com component, so I add a reference to my .Net project, and I create an instance of class of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.