ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  VB.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is DLL hell?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is DLL hell?
Answer
# 1
1.	Adding of a new virtual method to a class exported 
from a DLL can cause the following problems: 
o	If class already has a virtual method B and we are 
adding a new one named A before it, then we are changing 
the table of virtual methods. Now the first virtual method 
in the table will be A but not B and the client program 
which calls B will fail without recompilation as the call 
of B will cause the call of A and this is another method 
which possibly has other parameters and return type. 
o	When a class doesn?t have virtual methods and none 
of its base classes have, then adding of a new virtual 
method to it or to its base class will cause adding of the 
pointer for the table of virtual methods. This will cause 
change in the class size. So the error will occur after a 
client program will allocate memory for the class (an 
amount of memory that was required before the class has 
been changed) and will try to modify some of the class' 
fields explicitly or implicitly. In this case, as the 
pointer to the table of virtual method is added to the 
beginning of the class, all addresses of the class fields 
are shifted and thus we will get an abnormal client program 
behavior or a runtime error. 
o	In case when a class has virtual methods or any of 
its parent classes has, we can?t add virtual methods to 
classes exported from the DLL if they participate in the 
inheritance. We can?t add virtual methods not only to the 
beginning of the class declaration but also to the end of 
it. The problem is in shifting in the table of virtual 
methods. Note that even if you add a new virtual method to 
the end of the class declaration then the child?s virtual 
methods will be shifted. 
2.	Adding of a new field (of any kind) to a class 
declaration can cause following problems: 
1.	Adding of a new field to the end of a class causes 
class size to change as in the case of adding of a virtual 
method to a class that didn?t have any. The client program 
will allocate less memory than it is required for a new 
class and this will cause referencing to the memory out of 
the class scope. 
2.	Adding of a new field between existing ones is even 
worse. It will case all addresses of fields after the new 
one to be shifted and a client application will work with 
the incorrect addresses while working with the fields that 
are situated after the new field. We also have the problem 
as in the previous point here.
 
Is This Answer Correct ?    1 Yes 0 No
Priya
 
  Re: What is DLL hell?
Answer
# 2
Overwriting a older version of dll by a new version of dll 
is known as Dll Hell problem.
 
Is This Answer Correct ?    4 Yes 1 No
Subhash - Netedge Computing
 
 
 

 
 
 
Other VB.NET Interview Questions
 
  Question Asked @ Answers
 
What is shadowing? TCS3
What is "Friend" in VB.Net?  2
how to call a list box on the text if some one send me the code for it  1
What is versioning in .NET?  2
hey friends, Firstly I pick the records from the database into the DataGridView, Then I want that If I made any changes to the records in the GridView & Click on Update Button, Changes are Reflected into the main Database .Plz do reply back  3
hello dear friends my problem is that i want to save images that is pictures in SQL server using vb.net can any body help me to do so please  1
What is the Difference between Overriding and overloading?  11
sql satement for 2nd maximum value NIIT10
what are Fixed memory leaks and threads locking problems.  1
Difference between VB dll and assemblies in .NET ? Digital-GlobalSoft5
what is vb.net?  9
1.wht is satellite assembly??? 2.How Garbage Collector works can u explain ???? ABC3
What is intermediate language in .NET ? Digital-GlobalSoft13
In vb.net how to connect crystal report?  1
What are Major Feature of VB.NET Over C#.NET  9
is it possible to use flexgrid in vb dotnet? Microsoft7
What are the similarities between class and structure? Ksb5
ColumnMapping belongs to which namespaces?  1
what is the dif b/w panel and groupbox. Ksb3
What is the DIfference between Friend and Protected Friend? CTS5
 
For more VB.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com