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

Multiple DLL's & REBASE, and more...

1.
I have a Solution named "Bjarne" that contains several Projects.

Each project generates it's own DLL, that must be included with the main
executable.
Each Dll's Base adress is set to: &H11000000

I read in an article that by using the REBASE tool you could re-assign where
the DLL's would load and that way speed ut load-time.
I found the tool, but i don't know how to use it, or if it works with VB.Net
Dll's

Can anyone give me an example how to use this tool, (parameters to use
ect.)?

article: http://msdn.microsoft.com/msdnmag/is...d/default.aspx
2.
As i said earlier; the 'Bjarne' Solution holds several projects:

Is there any way of making the other project's (the DLL's) in the solution,
included into the main executable.
That would speed up execution too wouldn't it?

(The solution generates about 500KB total in Dll's and Exe's, but requires
about 18 MB in RAM)
Nov 20 '05 #1
5 1603
Each Dll's Base adress is set to: &H11000000
Why? If you want to change the base address, it's easier to do at
compile time rather than afterward with Rebase.

Is there any way of making the other project's (the DLL's) in the solution,
included into the main executable.
If you have access to the source code, couldn't you just create a new
project that includes all source files, and compile the whole shebang
into a single executable?

If not, you could try ILLINK

http://www.gotdotnet.com/Community/U...f-820137305e24

That would speed up execution too wouldn't it?


I doubt it.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #2
* "Jarod_24" <ja******@hotmail.com> scripsit:
I have a Solution named "Bjarne" that contains several Projects.

Each project generates it's own DLL, that must be included with the main
executable.
Each Dll's Base adress is set to: &H11000000

I read in an article that by using the REBASE tool you could re-assign where
the DLL's would load and that way speed ut load-time.
I found the tool, but i don't know how to use it, or if it works with VB.Net
Dll's


Are you sure your problem is related to VB.NET?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl...
Each Dll's Base adress is set to: &H11000000
Why? If you want to change the base address, it's easier to do at
compile time rather than afterward with Rebase.

Because what happends then is that the OS must re-organize where every DLL
is positioned in memory (Except for the first one tha loads)
Is there any way of making the other project's (the DLL's) in the solution,included into the main executable.
If you have access to the source code, couldn't you just create a new
project that includes all source files, and compile the whole shebang
into a single executable?


DUH!

If not, you could try ILLINK

http://www.gotdotnet.com/Community/U...f-820137305e24
That would speed up execution too wouldn't it?


I doubt it.

Mattias

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

Nov 20 '05 #4
>Each Dll's Base adress is set to: &H11000000


Why? If you want to change the base address, it's easier to do at
compile time rather than afterward with Rebase.

Because what happends then is that the OS must re-organize where every DLL
is positioned in memory (Except for the first one tha loads)


No, that's what happens if you *do* use the same base address for
multiple libraries, and the very reason you should change them.

Mattias

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

"Mattias Sjögren" <ma********************@mvps.org> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
>Each Dll's Base adress is set to: &H11000000

Why? If you want to change the base address, it's easier to do at
compile time rather than afterward with Rebase.
Because what happends then is that the OS must re-organize where every DLLis positioned in memory (Except for the first one tha loads)


No, that's what happens if you *do* use the same base address for
multiple libraries, and the very reason you should change them.


That's why i mentioned the REBASE tool.
I have no idea what to set the Base Adress to. That will change every time
you change something in the code too.


Mattias

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

Nov 20 '05 #6

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

Similar topics

3
by: Rich | last post by:
Hello all I have an application that is segmented into various Dlls, one of which contains caching mechanisms that create very large in-memory data structures. No matter what I do to attempt...
22
by: Brett Romero | last post by:
If my UI app uses three DLLs and two of those DLLs reference something named utilities.dll, does the UI app load utilities.dll twice or does the compiler recognize what is going on and load...
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?
4
by: yhebib | last post by:
Hello All, I've been browsing and reading all articles I could find on technet ,msdn and other knowledgeable sources to understand the issue I'm dealing with. However, I did not find so far how...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
2
by: shaji | last post by:
HI can anyone explain me (or direct me to a link) the differences in the system libraries in .net 1.1 and .net 2.0? What are the differences in GAC and Rebase between these two versions? Thanks in...
2
by: John | last post by:
Hi there, I've just been reading "ASP.Net 2.0 - Master Pages: Tips, Tricks, and Traps" by K. Scott Allen (http://odetocode.com/Articles/450.aspx) and discovered how rebasing works with URL's in...
0
by: George3 | last post by:
Hello everyone, Some study these days about address of exported function in DLL. It is appreciated if you could review and comment. (for C++ DLL/EXE only) 1.Inside DLL
1
by: Kevin | last post by:
Hello, I'm doing a school project and I'm supposed to be able to track campgrounds and their amenities. Here is some of the information I'm supposed to store: CAMPGROUND Number of Sites ...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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,...

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.