Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10341
| 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-24 09:24 +0100 |
| Message-ID | <ejk3daFiiv4U1@mid.individual.net> (permalink) |
| References | (2 earlier) <f0134433-5172-428c-961b-2f119105a185@googlegroups.com> <ejhgf5F2ku3U1@mid.individual.net> <5a9a7f2c-3cf1-460a-aa98-7d1715b056bd@googlegroups.com> <ejjvlmFhsc4U1@mid.individual.net> <ob2jq5$k8c$1@solani.org> |
Hi Karl,
> > P.S. unfortunately such a powerful feature is missing in the .NET
> > framework
>
> I'm just taking my first steps in .NET. Somewhere I found somemthing
> similar to VO-Error-handling. Used this in my first app and it works
> pretty well. But please don't ask for explanations...
maybe I have to add that I use WPF, and sometimes also GUI agnostic
DLLs. Therefore I cannot simply popup an error box.
This is one of the things I use everywhere:
static method LogException( oEx as Exception ) as void
local oData as IDictionary
local cLogFile as string
local oLines as List<string>
oLines := List<string>{}
oLines:Add( "" )
oLines:Add( "class name:" + oEx:GetType():Name )
oLines:Add( "Message:" + oEx:Message )
oLines:Add( "Source:" + oEx:Source )
oLines:Add( "StackTrace:" + oEx:StackTrace )
oData := oEx:Data
if oData != null_object
oLines:Add( "Data:" )
if oData:Count > 0
foreach oEntry as DictionaryEntry in oData
oLines:Add( oEntry:Key:ToString() + ":" + oEntry:Value )
next
endif
endif
cLogFile := Path.Combine( Utility.ProgramPath(), "XSError.log" )
File.AppendAllLines( cLogFile, oLines )
if oEx:InnerException != null_object
oLines:Clear()
oLines:Add( "" )
oLines:Add( "InnerException:" )
File.AppendAllLines( cLogFile, oLines )
Utility.LogException( oEx:InnerException )
end
return
Wolfgang
--
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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