Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Why finalize method not overriden for system resource classes?
Why finalize method not overriden for system resource classes? [message #546057] Sat, 10 July 2010 13:36 Go to next message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
Why is the finalize method of system resource classes like font,color,image,pattern,cursor has not been overridden...

so that explicit dispose can be called there, instead of user ensuring that these have to be disposed.

Is there any specific reason???


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: Why finalize method not overriden for system resource classes? [message #546250 is a reply to message #546057] Mon, 12 July 2010 09:51 Go to previous messageGo to next message
Lakshmi Shanmugam
Messages: 274
Registered: July 2009
Location: India
Senior Member
Hi,

This article explains the reasons -
http://www.eclipse.org/articles/swt-design-2/swt-design-2.ht ml


Lakshmi P Shanmugam
Re: Why finalize method not overriden for system resource classes? [message #546311 is a reply to message #546250] Mon, 12 July 2010 12:55 Go to previous message
Vijay Raj
Messages: 608
Registered: July 2009
Senior Member
That was neat....
Thanks


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Separate table columns on Mac OS
Next Topic:Multiline text in table headers
Goto Forum:
  


Current Time: Thu Oct 30 16:12:08 GMT 2014

Powered by FUDForum. Page generated in 0.02554 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software