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


Groups > comp.lang.basic.visual.misc > #1663

Re: Trapping Windows Error

From "Thorsten Albers" <gudea@gmx.de>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Trapping Windows Error
Date 2012-12-11 21:44 +0000
Organization Albert-Ludwigs-Universität Freiburg
Message-ID <01cdd7e8$c5c59fe0$7a02a8c0@k8s8x> (permalink)
References (6 earlier) <GHrxs.804343$A%.463512@fx26.am4> <OvKdnaBO8LH81lvNnZ2dnUVZ8nKdnZ2d@giganews.com> <fQsxs.904505$W63.127696@fx05.am4> <R5qdnZToBcGv-VvNnZ2dnUVZ7omdnZ2d@giganews.com> <tGzxs.680423$9D6.552770@fx27.am4>

Show all headers | View raw


Ivar <ivar.ekstromer000@ntlworld.com> schrieb im Beitrag
<tGzxs.680423$9D6.552770@fx27.am4>...
> I agree, but that's not the solution, that's a cop out being so the
original 
> question was about trapping the error.

Try SetErrorMode() with SEM_NOGPFAULTERRORBOX. Exp.:

PrevErrorMode = SetErrorMode(SEM_NOGPFAULTERRORBOX)
Call FreeLibrary(...)
SetErrorMode(PrevErrorMode)

Maybe this will catch the error.

> And there does not seem to be a way 
> of doing that because the error is not within the app itself :-(

The error is within the app itself in that the app uses a library which
obviously is free of errors!

-- 
Thorsten Albers

gudea  at  gmx.de

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Trapping Windows Error "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-12-09 08:14 +0000
  Re: Trapping Windows Error ralph <nt_consulting64@yahoo.com> - 2012-12-09 17:24 -0600
    Re: Trapping Windows Error "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-12-10 13:00 +0000
      Re: Trapping Windows Error Deanna Earley <dee.earley@icode.co.uk> - 2012-12-10 13:10 +0000
      Re: Trapping Windows Error "Tim Rude" <timrude.nospam@nospam.hotmail.com> - 2012-12-10 09:26 -0600
        Re: Trapping Windows Error "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-12-10 17:31 +0000
          Re: Trapping Windows Error "Tim Rude" <timrude.nospam@nospam.hotmail.com> - 2012-12-10 14:35 -0600
          Re: Trapping Windows Error Deanna Earley <dee.earley@icode.co.uk> - 2012-12-11 08:57 +0000
            Re: Trapping Windows Error Karl E. Peterson <karl@exmvps.org> - 2012-12-11 14:40 -0800
              Re: Trapping Windows Error Deanna Earley <dee.earley@icode.co.uk> - 2012-12-12 08:53 +0000
      Re: Trapping Windows Error Jim Mack <no-uce-ube@mdxi.com> - 2012-12-10 12:01 -0500
        Re: Trapping Windows Error "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-12-10 17:42 +0000
          Re: Trapping Windows Error Jim Mack <no-uce-ube@mdxi.com> - 2012-12-10 15:23 -0500
            Re: Trapping Windows Error "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-12-10 20:35 +0000
              Re: Trapping Windows Error "Thorsten Albers" <gudea@gmx.de> - 2012-12-10 20:48 +0000
              Re: Trapping Windows Error Jim Mack <no-uce-ube@mdxi.com> - 2012-12-10 15:51 -0500
                Re: Trapping Windows Error "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-12-10 21:52 +0000
                Re: Trapping Windows Error Jim Mack <no-uce-ube@mdxi.com> - 2012-12-10 17:37 -0500
                Re: Trapping Windows Error "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-12-11 05:39 +0000
                Re: Trapping Windows Error RW <RonW@no_domain.invalid> - 2012-12-11 15:12 -0500
                Re: Trapping Windows Error "Ivar" <ivar.ekstromer000@ntlworld.com> - 2012-12-12 05:57 +0000
                Re: Trapping Windows Error Deanna Earley <dee.earley@icode.co.uk> - 2012-12-12 08:54 +0000
                Re: Trapping Windows Error "Thorsten Albers" <gudea@gmx.de> - 2012-12-11 21:44 +0000
                Re: Trapping Windows Error GS <gs@somewhere.net> - 2012-12-10 18:30 -0500
      Re: Trapping Windows Error David Kerber <dkerber@WarrenRogersAssociates.invalid> - 2013-01-21 11:29 -0500

csiph-web