How are you creating the instance in your top level form? Is the object part of the form or being added in method code at runtime?
There is an error method in the custom base class. Any code in there to handle when the thing blows up? Quick and dirty; put a SUSPEND in the error method. Then you can bring up the debugger. This assumes you can break it reliably in the dev environment. -- rk -----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Jeff Johnson Sent: Wednesday, December 11, 2013 5:13 PM To: [email protected] Subject: Re: How to kill a class I guess I did not make myself clear. I have an import object. It has no interface and is based on a custom class. It opens tables, does queries on sql server tables and then populates the tables and runs as a server so to speak. It does the import every 10 minutes. I have been using this class for over 10 years and I am modifying a few things. In my modifications I have done something wrong and I get an error. I want to stop the process completely at that point, but can't figure out how to do it. Does destroy() do that? I am running it in a top level form. Maybe clear events will work? Jeff _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD0442296CF946B@ACKBWDDQH1.artfact.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

