note description: "Perform cleanup operations before current instance is reclaimed by garbage collection." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" deferred class DISPOSABLE feature -- Removal dispose -- Action to be executed just before garbage collection -- reclaims an object. -- Effect it in descendants to perform specific dispose -- actions. Those actions should only take care of freeing -- external resources; they should not perform remote calls -- on other objects since these may also be dead and reclaimed. deferred end feature {NONE} -- Status report is_in_final_collect: BOOLEAN = False; -- Is GC currently performing final collection -- after execution of current program? -- Safe to use in `dispose'. -- On .NET there is no way to access this information -- therefore it will always be False. note library: "EiffelBase: Library of reusable components for Eiffel." copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end