HighTechTalks DotNet Forums  

Re: basic question...destructors confusion

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss Re: basic question...destructors confusion in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mobileboy36
 
Posts: n/a

Default Re: basic question...destructors confusion - 10-12-2007 , 10:02 AM






Thank yuo Ilya,
What do you mean exactly with native resources?

best regards
"Mobileboy36" <Mobileboy36 (AT) gmail (DOT) com> schreef in bericht news:...
Quote:
Public sub New()



End sub



How to write a destructor in VB.NET?



Protected Overrides Sub Finalize()

???

End Sub





Why you have to call class.dispose than in some cases.

When I implement Finialize, do I have to implement Dispose too?











Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: basic question...destructors confusion - 10-12-2007 , 10:18 AM






He means "not managed" so any resource allocated without the knowledge of
the GC.


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com


"Mobileboy36" <Mobileboy36 (AT) gmail (DOT) com> wrote

Quote:
Thank yuo Ilya,
What do you mean exactly with native resources?

best regards
"Mobileboy36" <Mobileboy36 (AT) gmail (DOT) com> schreef in bericht news:...
Public sub New()



End sub



How to write a destructor in VB.NET?



Protected Overrides Sub Finalize()

???

End Sub





Why you have to call class.dispose than in some cases.

When I implement Finialize, do I have to implement Dispose too?













Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.