473,800 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1971
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.o rg> wrote in message
news:%2******** ********@TK2MSF TNGP10.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 DocumentComplet e 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 DocumentComplet e() 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.o rg> wrote in message
news:%2******** ********@TK2MSF TNGP10.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 DocumentComplet e 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 DocumentComplet e() 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
4571
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 tried all main combinations of Instancing (Multiuse/Singleuse) and of Threading models (per object/pool). Here's what I found: MultiUse - Thread per Object
6
2592
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 it where in the MS-SQL help that deals with the ActiveX supported in SQL. I'm not looking to do web pages ASP, ect. I'm looking to use the ActiveX as add on funtionality to support the Stored Procs I write. Thanks, -p
2
5358
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 (Standard Exe) that calls and controls other modules (ActiveX-Exe). We decided for ActiveX-Exe because they run in different processes. That means if one module shuts down, the others are still alive. Second reasons
4
2709
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, buttons with a dll? Thanks.
3
4582
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
2452
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 project type. It has no window. Is this a "Windows Service" or just a Windows app with no window? Thanks, Tom
1
5166
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
3151
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 and registered for COM Interop. This I know for sure has no memory leaks etc. as a simple test page can load, use and then dispose of the object without a problem.
4
3409
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 this Com exe. But I then realize that each time I call for a method of my web service, I create a new Com exe process, which is not what I want. Any idea to avoid this pitfall ?
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7576
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.