answersLogoWhite

0

How do you release memory in VB.NET?

Updated: 9/16/2023
User Avatar

Wiki User

14y ago

Best Answer

Memory management (including releasing memory) is always handled by the Garbage Collector. Generally you would allow the garbage collector to run automatically.

In some situations you may want to ask the garbage collector to collect sooner. In these cases you can call System.GC.Collect(). You can also implement the IDisposable interface on any classes that require special handling by the garbage collector, such as releasing database connections, file handlers or COM objects.

The garbage collector does not manage COM objects. If you are working with COM objects, I recommend you read the following article:
Beyond (COM) Add Reference: Has Anyone Seen the Bridge?
http://msdn.microsoft.com/en-us/library/ms973274.aspx

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you release memory in VB.NET?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is java better than vbnet?

Java is not better than VBNet, nor is VBNet better than Java. Eachone has its advantages and disadvantaged over the other one.


What is the difference between C and Vbnet?

It is just a different coding language, but C is more for business that VBNET


What is datareader in VBNET?

x


What is an instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.


What is instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.


IS VBNet purely objet oriented?

no


Who is the father of vbnet?

Alan Cooper


Who is the developer of vbnet?

Microsoft Microsoft.com/VisualStudio


Is the Class type in VBNET a value type?

NO.


How do you write a VBnet program to find the prime numbers between 100 to 200?

VBnet program to find the prime numbers between 100 to 200?


What is public in vbNET?

It means it can be used by other classes


How vbnet is powerful language than php?

It isn't.