Path: csiph.com!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Wochele Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Terminating an application which runs in the background Date: Fri, 24 Mar 2017 10:05:18 +0100 Organization: solani.org Lines: 14 Message-ID: References: <0c459c45-4199-4fd7-acac-e6c5f2e66b58@googlegroups.com> <5a9a7f2c-3cf1-460a-aa98-7d1715b056bd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: solani.org 1490346317 23455 eJwFwYEBwCAIA7CXqIXKzpkg/59gEhRU2xXymJjVGT+O9ycsKo1hbUCLuuduKzpxCkJPJR8DDRBY (24 Mar 2017 09:05:17 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 24 Mar 2017 09:05:17 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 X-User-ID: eJwFwYEBwCAIA7CXhtLiO2Lp/ycswWbwVRJMGBbLmDmll50VsUbbY6vLc7Dup7hCKQ+78QM6KxIw X-NNTP-Posting-Host: eJwFwQkBwDAIA0BLhUBo5TAe/xJ256Cwwug0X18ApTnh0zZ3VWkdJ5+cs1e1vkSHufJx2IIfFhEQnA== In-Reply-To: Cancel-Lock: sha1:ZBqjATXdQP0shkS+pxZL6RjjUJ4= Xref: csiph.com comp.lang.clipper.visual-objects:10342 Hi Wolfgang, the relevant lines in the START-function are Application.ThreadException += ThreadExceptionEventHandler{MyThreadException} AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionEventHandler{MyUnhandledException} Then all errors will end in Handleexception(). There you can do whatever you want... Karl