What are the main differences between VB .NET and VB 6.0 in terms of releasing resources that will no longer be used?
The .NET Framework uses a technique called reference-tracing garbage collection, while Visual Basic 6.0 used a different system called reference counting with the same purpose. These systems have the following main differences that must be considered in order to achieve successful interoperation: • Non-deterministic object lifetime. The CLR destroys objects more quickly when system resources decrease to a certain level; on the other hand, objects are destroyed slower when system resources abound. The result of this scheme is that it is impossible to determine in advance when an object will actually be destroyed and its resources freed under Visual Basic .NET. In this case, .NET objects are said to have a non-deterministic lifetime. This behavior does not affect the development process, as long as it is understood that the Finalize destructor may not execute immediately when an object goes out of scope under Visual Basic .NET. • Assignment of the Nothing value. In Visual Basic 6.0, prog
Related Questions
- What are the main differences between the Zimmer® Gender Solutions™ knee and the traditional knee implant that has previously been used for women?
- What are the main differences between the 915GMS Express Chipset used on the LS800 and the 855GME Chipset used on the M1400 Tablet PC?
- What are the main differences between VB .NET and VB 6.0 in terms of releasing resources that will no longer be used?