473,407 Members | 2,320 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,407 software developers and data experts.

Base Address Proprty

We are writing a set of Windows Services using C#.NET that will run on the
same server. One of the developers here said that we should assign each
service its own Base Address using the Properties page, so that the services
won't conflict with each other. I cannot seem to find any information about
when to set the Base Address or what its practical effect would be. My
impression is that the BaseAddress is just a "suggested" base address, and
that Windows / .NET will check it but load the .dll where it thinks is best
if there is a conflict.

Is setting the Base Address something that we should do? What is the
practical effect of changing that parameter?

Steve Guidos

Nov 16 '05 #1
1 2308
Steve,

The Base Address that is suggested by VS.NET is random (from what I can
tell). VB6 defaulted to a fixed address, which required the DLL to be
remapped by the OS for the process when it was used.

However, if they are the same, the loader will take care of the mapping
for you, there will be no conflict. Having different base addresses just
makes it faster (by how much depends on the size of the assembly).

Also, since these are separate services, the point is moot, since they
each have their own address space.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Steve Guidos" <St*********@discussions.microsoft.com> wrote in message
news:E9**********************************@microsof t.com...
We are writing a set of Windows Services using C#.NET that will run on the
same server. One of the developers here said that we should assign each
service its own Base Address using the Properties page, so that the
services
won't conflict with each other. I cannot seem to find any information
about
when to set the Base Address or what its practical effect would be. My
impression is that the BaseAddress is just a "suggested" base address, and
that Windows / .NET will check it but load the .dll where it thinks is
best
if there is a conflict.

Is setting the Base Address something that we should do? What is the
practical effect of changing that parameter?

Steve Guidos

Nov 16 '05 #2

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

Similar topics

8
by: Bryan Parkoff | last post by:
I find an interesting issue that one base class has only one copy for each derived class. It looks like that one base class will be copied into three base classes while derived class from base...
9
by: justanotherguy63 | last post by:
Hi, I am designing an application where to preserve the hierachy and for code substitability, I need to pass an array of derived class object in place of an array of base class object. Since I...
3
by: Dave Rahardja | last post by:
Consider the following example: --- #include <iostream> class Base { public: virtual void fn() { std::cout << "Base::fn()\n"; }
8
by: Andreas Lagemann | last post by:
Hi, after browsing FAQ and archive for a while I decided that the following is a legal question. Consider this: Class Base { public: Base() {}
5
by: Michael | last post by:
Hi, Could you tell me whether the following two statement are the same? Derived class is derived from Base class. 1. Base* ptr1; 2. Derived * ptr2; Does it mean ptr1 is the same as ptr2?
32
by: moleskyca1 | last post by:
This may be stupid question, but why is sizeof(Base) == 1 in: int main(int argc, char* argv) { class Base { }; cout << sizeof(Base) << endl; return 0; }
3
by: Newish | last post by:
Hi Regarding DLL base address: 1) What does it mean? 2) Should it ever be changed? 3) What are the rules to change it?
7
by: Yen Kwoon | last post by:
Note: This problem is related to gcc but after some back and forth in group gnu.gcc.help it seems to have morph into more of a c++ specificiation question, hence the transplanting to this group. ...
0
by: =?Utf-8?B?Zmplcm9uaW1v?= | last post by:
Hi all, As I mentioned in a previous thread (see 'Dbghelp, symbols and templates' in microsoft.public.windbg), we created a powerful symbol engine using dbghelp to dump the contents of the stack...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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.