Application still running after runtime error 
Author Message
 Application still running after runtime error

Situation:

We have a form (start up form) which is actually the background.
On this form a non modal form is placed which is actually the menu.
From this menu we open a new modal form. This new form caused a
runtime-error (in the .EXE).
There is no error-handling.  When the "Subscript out of range"-error
pops up, the user can only click the OK button.  What normally happens
then
is that the application is ended completely, however in this case, the
user gets to see the menu again.  All buttons can be pressed, but the
action behind the buttons doesnt't get done.  This causes that the
user can not exit the application.  Only an end-task seems te work.

Has anyone got any idea how it comes that after the runtime error vb
doesn't exit the entire application.  In develop I can simulate the
runtime, but if chose to end after the error, than everything seems to
exit normal.

Many thanks.



Mon, 05 Dec 2005 17:20:54 GMT  
 Application still running after runtime error
The absolute best thing to do is to add error trapping that allows you to either deal with
the error or exit gracefully. Plus, fix the cause of the error (of course)

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep it in the groups..


Quote:
> Situation:

> We have a form (start up form) which is actually the background.
> On this form a non modal form is placed which is actually the menu.
> From this menu we open a new modal form. This new form caused a
> runtime-error (in the .EXE).
> There is no error-handling.  When the "Subscript out of range"-error
> pops up, the user can only click the OK button.  What normally happens
> then
> is that the application is ended completely, however in this case, the
> user gets to see the menu again.  All buttons can be pressed, but the
> action behind the buttons doesnt't get done.  This causes that the
> user can not exit the application.  Only an end-task seems te work.

> Has anyone got any idea how it comes that after the runtime error vb
> doesn't exit the entire application.  In develop I can simulate the
> runtime, but if chose to end after the error, than everything seems to
> exit normal.

> Many thanks.



Mon, 05 Dec 2005 22:15:18 GMT  
 Application still running after runtime error
Yes, you are right and I know that's the way it should be done
normally.  But it is an application (not originally written by myself)
which has not much error-trapping in it yet.  Placing error handlers
in all the routines is very time-consuming.
Quote:

> The absolute best thing to do is to add error trapping that allows you to either deal with
> the error or exit gracefully. Plus, fix the cause of the error (of course)

> --
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> Please keep it in the groups..



Tue, 06 Dec 2005 17:09:23 GMT  
 Application still running after runtime error


Fri, 19 Jun 1992 00:00:00 GMT  
 Application still running after runtime error
Help - I've got an application chasing my runt!

Quote:
>-----Original Message-----
>Situation:

>We have a form (start up form) which is actually the
background.
>On this form a non modal form is placed which is actually
the menu.
>From this menu we open a new modal form. This new form
caused a
>runtime-error (in the .EXE).
>There is no error-handling.  When the "Subscript out of
range"-error
>pops up, the user can only click the OK button.  What
normally happens
>then
>is that the application is ended completely, however in
this case, the
>user gets to see the menu again.  All buttons can be
pressed, but the
>action behind the buttons doesnt't get done.  This causes
that the
>user can not exit the application.  Only an end-task
seems te work.

>Has anyone got any idea how it comes that after the
runtime error vb
>doesn't exit the entire application.  In develop I can
simulate the
>runtime, but if chose to end after the error, than
everything seems to
>exit normal.

>Many thanks.
>.



Tue, 06 Dec 2005 17:38:06 GMT  
 Application still running after runtime error


Fri, 19 Jun 1992 00:00:00 GMT  
 Application still running after runtime error


Quote:
> Yes, you are right and I know that's the way it should be done
> normally.  But it is an application (not originally written by myself)
> which has not much error-trapping in it yet.  Placing error handlers
> in all the routines is very time-consuming.

Welcome to the wonderful world of programming.

Take the time.



Tue, 06 Dec 2005 23:31:20 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Trying to run mdb using A2K Runtime generates runtime error

2. how to tell at runtime if ran application from exe or from development environment

3. Run-time error 61704 : Internal application error

4. run-time error '713': Application-defined or object-defined error

5. runtime error, application inactive??

6. Runtime error 50003 - after Application Install

7. VB Application Wizard for VB5 runtime error

8. Runtime Error 50003 after Installing Application

9. runtime error 800a01a8, Object Required: 'Application(...)'

10. Runtime Error in VB Application

11. VB6: application in runtime environment with error on loading form: ado cannot load object

12. HELP runtime error whilst running VB with Win 3.11

 

 
Powered by phpBB® Forum Software