Hi SalamElias,
Welcome to VB.NET!
The Set and Let keywords are no longer needed/supported in VB.NET.
To understand why the Finalize method is not called during debug, you need
to first understand what is Garbage Collection by reading following
excellent article by Jeffrey Richter:
#Garbage Collection: Automatic Memory Management in the Microsoft .NET
Framework -- MSDN Magazine, November 2000
http://msdn.microsoft.com/msdnmag/issues/1100/gci/
For more information, please refer to following articles:
#Object.Finalize Method (System)
http://windowssdk.msdn.microsoft.com/en-us/library/system.object.finalize.as
px
#Finalizers, Assembly Names, MethodInfo, and More
http://msdn.microsoft.com/msdnmag/issues/04/05/NETMatters/
#Implementing Finalize and Dispose to Clean Up Unmanaged Resources
http://windowssdk.msdn.microsoft.com/en-us/library/b1yfkh5e.aspx
Please feel free to let me know whether or not you need further
information. Thank you.
Sincerely,
Walter Wang (
[email protected], remove 'online.')
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.