Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #10358

Re: Terminating an application which runs in the background

Path csiph.com!news.mixmin.net!news.unit0.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Terminating an application which runs in the background
Date Tue, 28 Mar 2017 14:28:14 +0200
Lines 32
Message-ID <ejv36vFo9t9U1@mid.individual.net> (permalink)
References <0c459c45-4199-4fd7-acac-e6c5f2e66b58@googlegroups.com> <ejhderF228pU1@mid.individual.net> <f0134433-5172-428c-961b-2f119105a185@googlegroups.com> <ejhgf5F2ku3U1@mid.individual.net> <5a9a7f2c-3cf1-460a-aa98-7d1715b056bd@googlegroups.com> <ejjvlmFhsc4U1@mid.individual.net> <7d5647d5-00c2-4061-b082-5a6b1364bace@googlegroups.com> <ejuj63Fl123U1@mid.individual.net> <e4b47f28-9812-4b27-a075-849b35d6f351@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
X-Trace individual.net 0QbEhogZCfj7mzg6MXX8xQfcKH9U7iGmo/eErd5nVycXkFe4Y=
Cancel-Lock sha1:7X8sH5Y5dkJgXhrW/rTIyeQxpog=
User-Agent XanaNews/1.18.1.6
Xref csiph.com comp.lang.clipper.visual-objects:10358

Show key headers only | View raw


Hi Stefan,

> I'd rather prefer something like that:
> when a VO System error occurs, get the App object (GetAppObject) and
> fire a handler let's say SysError. The question is only where to call
> it.

to be called, you have two possibilities:

- be notified in a begin/end sequence inthe recover statement. The only
drawback is that you have to have to insert your code in every recover
branch of every begin/end sequence (in my programs, this would be a
major problem as I use them a lot)
- replace the default error handler by your own

Personally I prefer the second option (and I use it very often:
immagine a Windows service that pops up the standard error dialog: I
prefer an email with the runtime error instead).

You can find the original DefError function in the System Library SDK,
module ErrorSys.

We have to take the system as it is and try to make the best of it. I
had very few things I was not able to accomplish with VO (and some of
them could be accomplished building a COM module with X#)

Wolfgang



-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Terminating an application which runs in the background Stefan Überbacher <info@sanosoft.com> - 2017-03-23 00:17 -0700
  Re: Terminating an application which runs in the background "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-23 08:51 +0100
    Re: Terminating an application which runs in the background Stefan Überbacher <info@sanosoft.com> - 2017-03-23 01:10 -0700
      Re: Terminating an application which runs in the background "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-23 09:48 +0100
        Re: Terminating an application which runs in the background Stefan Überbacher <info@sanosoft.com> - 2017-03-23 02:30 -0700
          Re: Terminating an application which runs in the background "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-24 08:20 +0100
            Re: Terminating an application which runs in the background Karl Wochele <kw@ecos-system.invalid> - 2017-03-24 09:02 +0100
              Re: Terminating an application which runs in the background "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-24 09:17 +0100
              Re: Terminating an application which runs in the background "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-24 09:24 +0100
                Re: Terminating an application which runs in the background Karl Wochele <kw@ecos-system.invalid> - 2017-03-24 10:05 +0100
                Re: Terminating an application which runs in the background "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-24 10:29 +0100
            Re: Terminating an application which runs in the background Stefan Überbacher <info@sanosoft.com> - 2017-03-28 00:10 -0700
              Re: Terminating an application which runs in the background "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-28 09:54 +0200
                Re: Terminating an application which runs in the background Stefan Überbacher <info@sanosoft.com> - 2017-03-28 04:09 -0700
                Re: Terminating an application which runs in the background "Wolfgang Riedmann" <wriedmann@gmail.com> - 2017-03-28 14:28 +0200
  Re: Terminating an application which runs in the background Guy Deprez <dpzguy@skynet.be> - 2017-03-23 09:20 +0100
  Re: Terminating an application which runs in the background Karl Wochele <kw@ecos-system.invalid> - 2017-03-23 11:20 +0100
    Re: Terminating an application which runs in the background Stefan Überbacher <info@sanosoft.com> - 2017-03-23 03:54 -0700

csiph-web