Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] usage finalize() as last resort of resource management

I have read this document, but it is explaining why finalize() shouldn't be used as system resource management mechanism. The discussion which I try to find is answer to the question: why finalize() isn't used as last resort for freeing system resources as it is used for FileInputStream for example? Am I missing something here? I fully understand the reasons behind the design decision about not using GC as management mechanism. The bug report explains fully the question which I'm trying to find answer to, so I'll not repeat it. So, is the discussion answering this specific question is available somewhere online?

Thank you,
Danail

Carolyn MacLeod wrote:

http://www.eclipse.org/articles/swt-design-2/swt-design-2.html



*"Danail Nachev" <d.nachev@xxxxxxxxx>*
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

11/07/2006 12:15 PM
Please respond to
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>


	
To
	platform-swt-dev@xxxxxxxxxxx
cc
	
Subject
[platform-swt-dev] usage finalize() as last resort of resource management


	





Hello, everybody,

First, I want to apologize for introducing again the hot topic for
resource management in SWT. Because I don't want to start another
thread on this I want to read the old information on this. But I
cannot find it (more interested on the exact question: 'why resource
management doesn't use finalize() as last resort?). Only found this
very bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=123765

The last comment states that this have been already discussed, but I
couldn't find this discussion. Is it available online or it is some
internal discussion? Could someone point me in the right direction,
because I only find discussions, where the questioner has been
redirected to the document describing the resource management in SWT,
which however, hasn't the answer to the exact question.

Best regards,
Danail
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


------------------------------------------------------------------------

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top