By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Guarding against old DLLs

P: n/a
..NET applications look in the executable's directory (among other places)
for any DLLs that it depends on. If an application finds an older version
of a DLL than the one it was compiled against, does it exit gracefully or
crash? And, is that check performed at startup, or will it crash whenever a
newer call cannot be found in the older DLL?

--
Jeff S.
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I suggest that you hide your DLL and find out.

"Jeff Stewart" <ob******@gmail.com> wrote in message
news:1104527362.33d4acfd7d20309cefde2b3c115ef214@t eranews...
.NET applications look in the executable's directory (among other places)
for any DLLs that it depends on. If an application finds an older version
of a DLL than the one it was compiled against, does it exit gracefully or
crash? And, is that check performed at startup, or will it crash whenever
a newer call cannot be found in the older DLL?

--
Jeff S.

Jul 21 '05 #2

P: n/a
It doesn't exist yet. I'm trying to plan ahead.

--
Jeff S.
"Relaxin" <me@yourhouse.com> wrote in message
news:us**************@TK2MSFTNGP10.phx.gbl...
I suggest that you hide your DLL and find out.

"Jeff Stewart" <ob******@gmail.com> wrote in message
news:1104527362.33d4acfd7d20309cefde2b3c115ef214@t eranews...
.NET applications look in the executable's directory (among other places)
for any DLLs that it depends on. If an application finds an older
version of a DLL than the one it was compiled against, does it exit
gracefully or crash? And, is that check performed at startup, or will it
crash whenever a newer call cannot be found in the older DLL?

--
Jeff S.


Jul 21 '05 #3

P: n/a
Jeff,
If an application finds an older version
of a DLL than the one it was compiled against, does it exit gracefully or
crash?
If the assembly doesn't have a strong name, it will simply load the
newer version and use that. Otherwise you'll get an exception that can
be handled to exit gracefully.

And, is that check performed at startup, or will it crash whenever a
newer call cannot be found in the older DLL?


It's done when the assembly is needed for the first time, which isn't
necessarily at startup.

Mattias

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

This discussion thread is closed

Replies have been disabled for this discussion.