Re: Assembly.LoadFrom and machine restart

From: Sherif ElMetainy (elmeteny.NOSPAM_at_wayout.net.NOSPAM)
Date: 01/04/05


Date: Tue, 4 Jan 2005 20:38:25 +0200

Hello

Most probably your assembly is cached in memory by windows the first time,
and in the later runs, it is loaded from memory. You can try this any
application (Outlook for example) and watch the hard disk led if first and
second run, you will notice a difference.

Best regards,
Sherif

"Jack Wright" <sunil@volcanomail.com> wrote in message
news:8f556eeb.0412230613.340f564b@posting.google.com...
> Dear All,
> I have developed a client .net application that gets launched via
> No Touch Deployment...using the Assembly.LoadForm method...I have a
> dll xrt.dll for which I have not maintained versioning...
> When I launch my application after a machine reboot (xrt.dll already
> present on client machine) it takes 2 seconds to load this dll...I
> assume this is because I have not maintained versioning of this dll
> and hence it downloads this dll again...but if I close my application
> and start it again, this dll gets loaded in 300ms seconds...how come
> it is fast the second time? My guess is it should have still taken 2
> seconds...can someone explain wot is MS doing here...
> I swear the following...:-)
> 1. xrt.dll was not changed in the server.
> 2. xrt.dll was already present on the client machine. (I ran the
> application once and then restarted my client machine).
>
> Please help...I want to enjoy my X'Mas...:-)
>
> TALIA
> Many Regards
> Jack



Relevant Pages

  • page vs. dll, which are more efficient
    ... aspx pages are compiled and stored in the server's ... memory the first time it's used. ... dump most of the code into a dll and have the page called that dll, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Why do we need executables in certain formats ?
    ... > complex binary formats was that programs need to be relocated, ... > perhaps linked with libraries. ... Modern virtual memory processors can locate to ... > has a hidden problem with the new .DLL. ...
    (comp.lang.asm.x86)
  • Re: Why is Base3.exe using 700+ K in windows task manager ?
    ... DLL function. ... handles opened by any thread of the calling process ... The DLL allocates memory from the virtual address space of the calling ... Who can tell where memory is really located in a virtual adress space? ...
    (alt.lang.asm)
  • Re: shared DLL VS static Link, Are they different?
    ... MFC exits, and if there is any memory that is freed at that time, MFC will ... business dumping leaks; it should wait until the CRT DLL dumps leaks after ... ALL RESOURCES OWNED BY THAT PROCESS ARE RELEASED. ...
    (microsoft.public.vc.mfc)
  • Re: Linking to a .NET dll from C#
    ... for obtaining price quotes and performance is absolutely critical. ... be to use shared memory or memory mapped files. ... Be aware that in these scenarios you're responsible for patching and updates, as the application will no longer rely on the clients machine to keep the framework up to date. ... Determine if a certain managed .NET dll or assembly is loaded ...
    (microsoft.public.dotnet.general)