Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #1642
| From | ralph <nt_consulting64@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.basic.visual.misc |
| Subject | Re: Trapping Windows Error |
| Date | 2012-12-09 17:24 -0600 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <545ac8dmg5vn6bvfm8k4efo5eedr07ag8a@4ax.com> (permalink) |
| References | <qLXws.1134789$ti6.623659@fx20.am4> |
On Sun, 9 Dec 2012 08:14:31 -0000, "Ivar" <ivar.ekstromer000@ntlworld.com> wrote: >Hi All. > >Here's hoping the VB6 gurus are still monitoring this newsgroup. >I recently updated an app of mine and distributed it to the end users. >A Couple of users have reported a problem where the app will stop working >and a message comes up with: >ProgName has encountered a problem and has to close >Windows is searching for a solution. >I can't replicate this problem on any machine I have access to, but I'm >fairly sure it's when the app calls the 'FreeLibrary' API of "kernel32" >Because it seems to work for most users, I'm assuming some users have a >broken Kernel32.DLL > >Is it possible for a VB6 app to handle this kind of error? >And of course, If so, How? > >Thanks for any pointers. > >Ivar Highly improbable that your Users have a "broken Kernel32.DLL". If they did - they would be having a lot more issues than just with your program. Due to configuration differences and complexities of Windows platforms, it is entirely possible while invoking an external process or service to have success in one scenario, yet fail, with or without error, in another. As for capturing the error - assuming it is in fact your application that is throwing the error, and that it is happening past 'startup' or launch, then simply reengineer your application to not have any unhandled exceptions, ie provide at least a "top" error handler for all possible paths. This is seldom as time consuming nor complicated as it might first appear. [Tools such as MZ-Tools makes this instrumentation easier.] Another way to get more accurate information on where an error is coming from is to enable Dr. Watson - if Users are using Windows XP or below. Or perhaps getting the Users to install and enable WinDbg if using Vista or Windows 7/8. -ralph
Back to comp.lang.basic.visual.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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