473,396 Members | 1,764 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,396 software developers and data experts.

doubt on COM components

I heard that we should try to avoid COM components as
possible as much while developing an application in .NET,
Why we need to avoid COM components?
Is there any serious reason?

Nov 20 '05 #1
3 837
* "kn***********@yahoo.com" <an*******@discussions.microsoft.com> scripsit:
I heard that we should try to avoid COM components as
possible as much while developing an application in .NET,
Why we need to avoid COM components?
Is there any serious reason?


Using COM components causes a lot of marshalling overhead which may
reduce performance and consume memory.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
<URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 20 '05 #2
You should use .NET components if they are available. But for a robust
application you many need to use some COM components. They will work just
fine, but the interface between .NET and COM inserts some overhead, so if
you are hitting the COM components thousands of times a second you will
probably see some performance degradation.

-Sam Matzen
"kn***********@yahoo.com" <an*******@discussions.microsoft.com> wrote in
message news:34****************************@phx.gbl...
I heard that we should try to avoid COM components as
possible as much while developing an application in .NET,
Why we need to avoid COM components?
Is there any serious reason?

Nov 20 '05 #3
On Sat, 24 Jul 2004 02:51:21 -0700, kn***********@yahoo.com wrote:
I heard that we should try to avoid COM components as


In addition to the other comments, one final reason for not using COM
coponents is that it complicates deployment. You no longer have XCopy
deployment and have to register the COM components on the target machine.
Thus, the possibility of "dll hell" still exists.

Like any tool, use them where necessary.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 20 '05 #4

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

Similar topics

4
by: Yasutaka Ito | last post by:
Hi, As you know, all the non-ui components (like Timer control, etc.) that sit on the form are contained in its private variable 'components'. How can I enumerate such components from any form...
0
by: Baskar RajaSekharan | last post by:
Hi, I am having one Tool, which will convert components from vc6 to Vc7 through programaticllay. (ie converting from .dsw to .sln.) While converting, the following MessageBox is comming ," The...
4
by: james | last post by:
I have a custom UserControl, which can have many sub class levels derived from it. I want to be able to discover all the components at Load time, but the only components I can see from the base...
6
by: Baskar RajaSekharan | last post by:
In C-sharp, I wnat to know whether the Component is compiled in Debug Mode or Run Mode through Code. How is it possible? Is there any way to Access the Config file and check? Please let me know...
1
by: Baskar RajaSekharan | last post by:
Hi, I am having one Tool, which will convert components from vc6 to Vc7 through programaticllay. (ie converting from .dsw to .sln.) While converting, the following MessageBox is comming ," The...
7
by: Ram | last post by:
Hi, I have two threads, one parent thread containing UI and a child thread waiting for some events from the parent thread. Now, I have two issues: 1) to keep the child thread active till the end...
0
by: petro | last post by:
I am trying to deploy an asp.net application to my web server. My application uses system.data.oledb to connect to an oracle database. On my development machine I have the oracle client 10g...
4
by: Paulo | last post by:
Hi... I have tryed my best to understand the asp.net, but the visual of asp.net pages are the most complicated, because on asp we have total control over the layout the page, on the asp.net for...
0
by: itsraghz | last post by:
Hello people, My present project need is to have an Open Source Java based reporting tool, which would allow the users to customize the fields to be chosen at runtime. The chosen fields are used...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.