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

Specifying a base loading address for a .NET assembly

I was wondering if anyone specifies a base loading address for .NET
Libraries (DLL projects). This can be done on the Advanced Compiler Settings
dialog, accessed from the Compile page of Project properties in VB.NET 2005
projects.

The default is &H11000000, so if you have several DLLs loading, they will
all try to load at that address. The first may succeed, but all others will
fail, and, as I understand it, the loader will have to rebase the dll
on-the-fly (at least that's how it used to work ;-)

The down side is a slower load (no app needs that), and traditionally, it
can also be harder to debug in the event of a crash. Also, is there the
equivalent of a "map file" for .NET apps? Or is that obsolete with the event
of JIT compilation?

I really don't know how much of this "old experience" applies to .NET apps -
can anyone straighten me out?

Thanks
Jun 15 '06 #1
3 1814
Emby wrote:
I was wondering if anyone specifies a base loading address for .NET
Libraries (DLL projects). This can be done on the Advanced Compiler Settings
dialog, accessed from the Compile page of Project properties in VB.NET 2005
projects.

The default is &H11000000, so if you have several DLLs loading, they will
all try to load at that address. The first may succeed, but all others will
fail, and, as I understand it, the loader will have to rebase the dll
on-the-fly (at least that's how it used to work ;-)

The down side is a slower load (no app needs that), and traditionally, it
can also be harder to debug in the event of a crash. Also, is there the
equivalent of a "map file" for .NET apps? Or is that obsolete with the event
of JIT compilation?

I really don't know how much of this "old experience" applies to .NET apps -
can anyone straighten me out?


Rico Mariani seems to be the expert on this topic. You can find his blog
here:

http://blogs.msdn.com/RicoM/

He has done quite a few posts on similar subjects so you might be able
to get what you want from there.

Jesse Houwing
Jun 15 '06 #2
Thanks Jessie,

Rico has lots of interesting stuff there, but I didn't see anything about
setting .NET DLL bas addresses.

Cheers
"Jesse Houwing" <jesse.houwing@------.nl> wrote in message
news:OG**************@TK2MSFTNGP04.phx.gbl...
Emby wrote:
I was wondering if anyone specifies a base loading address for .NET
Libraries (DLL projects). This can be done on the Advanced Compiler
Settings dialog, accessed from the Compile page of Project properties in
VB.NET 2005 projects.

The default is &H11000000, so if you have several DLLs loading, they will
all try to load at that address. The first may succeed, but all others
will fail, and, as I understand it, the loader will have to rebase the
dll on-the-fly (at least that's how it used to work ;-)

The down side is a slower load (no app needs that), and traditionally, it
can also be harder to debug in the event of a crash. Also, is there the
equivalent of a "map file" for .NET apps? Or is that obsolete with the
event of JIT compilation?

I really don't know how much of this "old experience" applies to .NET
apps - can anyone straighten me out?


Rico Mariani seems to be the expert on this topic. You can find his blog
here:

http://blogs.msdn.com/RicoM/

He has done quite a few posts on similar subjects so you might be able to
get what you want from there.

Jesse Houwing

Jun 16 '06 #3
Hello Emby,

It doesn't answer your question.. but an interesting tid-bit: It seems that
under Vista ALL dlls will be dynamicly rebased by the OS (with some exceptions
and some ability to manage the exception list).

-Boo
Thanks Jessie,

Rico has lots of interesting stuff there, but I didn't see anything
about setting .NET DLL bas addresses.

Cheers

"Jesse Houwing" <jesse.houwing@------.nl> wrote in message
news:OG**************@TK2MSFTNGP04.phx.gbl...
Emby wrote:
I was wondering if anyone specifies a base loading address for .NET
Libraries (DLL projects). This can be done on the Advanced Compiler
Settings dialog, accessed from the Compile page of Project
properties in VB.NET 2005 projects.

The default is &H11000000, so if you have several DLLs loading, they
will all try to load at that address. The first may succeed, but all
others will fail, and, as I understand it, the loader will have to
rebase the dll on-the-fly (at least that's how it used to work ;-)

The down side is a slower load (no app needs that), and
traditionally, it can also be harder to debug in the event of a
crash. Also, is there the equivalent of a "map file" for .NET apps?
Or is that obsolete with the event of JIT compilation?

I really don't know how much of this "old experience" applies to
.NET apps - can anyone straighten me out?

Rico Mariani seems to be the expert on this topic. You can find his
blog here:

http://blogs.msdn.com/RicoM/

He has done quite a few posts on similar subjects so you might be
able to get what you want from there.

Jesse Houwing

Jun 16 '06 #4

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

Similar topics

2
by: Foehammer | last post by:
Hello, I'm trying to load an assembly dynamically using an app domain. This is a proof-of-concept for a larger project, so please excuse the lame class names. TestLib is the dll where all the...
1
by: Benjamin | last post by:
Hi, I'm currently writing a Web Services that interacts with a database. To allow me to use not just one database provider (for example, I could use MS Access, SQL Server or MySQL), the Web...
9
by: Ender | last post by:
I have an application that I would like third party developers to be able to create Plug-ins that will be dynamically loaded into our application to extend functionality. I have utilized the...
1
by: Steve Guidos | last post by:
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...
7
by: Ollie Riches | last post by:
I am trying to dynamically load an assembly that has a reference to 'Interop.WMEncoderLib.dll' which is a PIA to the windows media player DRM components. When I run the code from a console...
3
by: markoueis | last post by:
Our .NET application, let's call it A, needs to load an assembly of another .NET application, let's call it B. Preferably I would like to early bind and early load the B assembly. However, in a...
2
by: Patrick Ravi-Pinto | last post by:
Dear colleagues, i'm new in the .net programming and hope you can help me. I have two classes: Employee and Address The Employee class has a reference to the Address and imports them on the...
1
by: Lee | last post by:
Is there a tool that I can use that will help me decide the optimum place(s) to set the DLL base address for my project, especially if there are several in the project?
1
by: almurph | last post by:
Folks, Hope you can help me with this one. I have a winform which I cannot view in design mode. A ll I can see is a big red "X" and the following following error message: " The designer could...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.