×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Wilt, Charles wrote:
Does try/finally really? I'm not so sure. What happens if you end a
process from task manager. That'd be the equivilant of ending a job.
Does the code in finally really get invoked? May have to test
that...
No, finally is only invoked after all the try & catch logic is
completed. It won't invoke when the whole process is abnormally
terminated ... no more than any other language construct when you
forcibly kill the process (or kill the power).
finally won't even invoke if you do a NORMAL termination of a java
application ... as no exception is generally thrown. You can, however,
add a hook to the runtime environment to run a process when a normal
termination is invoked (Runtime.addShutdownHook) ... very similar to the
CEE4RAGE api.
david
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.