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

  • Thread starter Thread starter Jarod_24
  • Start date Start date
J

Jarod_24

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/issues/0500/hood/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)
 
* "Jarod_24 said:
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?
 
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/...mpleGuid=b7560d78-7384-41b0-8ddf-820137305e24

That would speed up execution too wouldn't it?

I doubt it.



Mattias
 
Mattias Sjögren said:
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)
 
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 said:
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.
 
Back
Top