Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Terminating an application which runs in the background Date: Fri, 24 Mar 2017 10:29:55 +0100 Lines: 33 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 X-Trace: individual.net 4fZ+Qrq9F04769ghjeBJqQZR2xjfpm7LjE9rT+WtKkIjl2MzI= Cancel-Lock: sha1:uDQGBIzM75VHYEN/XSEYhHy1Aps= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:10343 Hi Karl, at least the line AppDomain.CurrentDomain:UnhandledException += AppDomainUnhandledException is present in my application. I'll try also the other statement. Wolfgang Karl Wochele wrote: > 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 --