473,387 Members | 1,365 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.

Guarding against old DLLs

..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
3 1322
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

87
by: ziliath | last post by:
I recently tried out the Google "top coder" contest, as a C++ coder. I noticed immediately that they expected me to know STL. To which I say, what the fuck?! I may be missing something, but at...
2
by: Johann Blake | last post by:
I can hardly believe I'm the first one to report this, but having gone through the newsgroup, it appears that way. I would like to open a solution in the VS.NET IDE that consists of multiple...
2
by: Shiraz | last post by:
Hi I just made an installer for an application that uses two external COM dlls. On the surface, everything seems to be running smoothly and the the application runs without any errors. However,...
11
by: Devender Khari | last post by:
Hi Friends, I'm facing a situation as follows, need help on identifying possible issues. There is an MFC application developed in VC6.0, say ABCVC6.exe and another developed in VC.NET, say...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
3
by: Jeff Stewart | last post by:
..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,...
5
by: Dave Booker | last post by:
I am developing in VS2005, but I have some third-party DLL's that appear to only work correctly when compiled in VS2003. ("Incorrect" operation is defined as a busy-wait that kicks in on a message...
4
by: Tyno Gendo | last post by:
I just wondered what methods people used typically when trying to guard against a POSTed script being reloaded at the users browser and effectively re-posting the same data again ? I have some...
1
weaknessforcats
by: weaknessforcats | last post by:
C++: The Case Against Global Variables Summary This article explores the negative ramifications of using global variables. The use of global variables is such a problem that C++ architects have...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.