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


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

Re: Trapping Windows Error

From Deanna Earley <dee.earley@icode.co.uk>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Trapping Windows Error
Date 2012-12-10 13:10 +0000
Organization Aioe.org NNTP Server
Message-ID <ka4mvo$7s5$1@speranza.aioe.org> (permalink)
References <qLXws.1134789$ti6.623659@fx20.am4> <545ac8dmg5vn6bvfm8k4efo5eedr07ag8a@4ax.com> <c1lxs.804333$A%.470356@fx26.am4>

Show all headers | View raw


On 10/12/2012 13:00, Ivar wrote:
> Hi Ralph
>
> Thank you for your reply.
> I sent my client a new exe file with the FreeLibrary call commented out
> and app does not stop working.
> So I'm sure it's that API call that's causing the problem
> I have some old sample code that calls some API functions (probably from
> PSC) Where if I run it from within the IDE Then it will cause VB6 to
> stop working and freeze with the same 'ProgName has stopped working'
> windows message, with a progress doing it's thing, and if I run it as a
> compiled exe it will do the same thing (ProgName changes obviously)
> After clicking the Cancel button the complied exe or VB6 will just close.
> 'On Error Resume Next' or 'On Error GoTo' makes no difference when
> running this sample code as compiled exe or within VB6 IDE.
>
> It's Not a run time error . My App seems to run quite happily with this
> FreeLibrary call on all but 2 machines (Both running Windows 7, but so
> are others)
> I'm thinking that Any App (even VB6 itself) cannot handle this kind of
> error.
> Still hoping someone can prove me wrong :-)

C++ apps can handle exceptions (if they're careful) but VB6 apps can't 
(easily).
FreeLibrary itself is unlikely to be the cause of an unhandled exception 
(as they aren't common in Win32) but it could be caused by any DLL or 
process hooked into it, i.e antivirus, etc, or just some code related to 
the FreeLibrary call in your code that is faulty.

Your only hope to fix it properly is to get a full error message with 
the exception code.
This will be listed in the event viewer and sometimes in the WER crash 
dialog itself.

-- 
Deanna Earley (dee.earley@icode.co.uk)
i-Catcher Development Team
http://www.icode.co.uk/icatcher/

iCode Systems

(Replies direct to my email address will be ignored. Please reply to the 
group.)

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