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

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Terminating an application which runs in the background
Date 2017-03-28 14:28 +0200
Message-ID <ejv36vFo9t9U1@mid.individual.net> (permalink)
References (4 earlier) <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>

Show all headers | 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