Err.Raise Causes Automation Error 
Author Message
 Err.Raise Causes Automation Error

I have defined a constant conRunCanceled as vbObjectError
+ 7890.  During the process if the user clicks on the
cancel button I use Err.Raise conRunCanceled to try
trapping it in my error handling routine.  Too often I get
an "Automation Error" instead and it completely ignores
the On Error Goto ThisErrorHandler.

Any ideas?

Scott



Tue, 29 Mar 2005 20:48:45 GMT  
 Err.Raise Causes Automation Error
On Fri, 11 Oct 2002 05:48:45 -0700, "Scott Stewart"

Quote:

>I have defined a constant conRunCanceled as vbObjectError
>+ 7890.  During the process if the user clicks on the
>cancel button I use Err.Raise conRunCanceled to try
>trapping it in my error handling routine.  Too often I get
>an "Automation Error" instead and it completely ignores
>the On Error Goto ThisErrorHandler.

At the start of your application, set the error trapping to "Break on
unhandled errors":

  Application.SetOption "Error Trapping", 2  

HTH
Matthias Kl?y

--
Kl?y Computing AG
www.kcc.ch



Wed, 30 Mar 2005 19:39:03 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Err.Raise causing automation errors in COM+ application

2. Err.Raise causes Error

3. err.raise in Class_initialize cause an error

4. err.raise in COM components causing Error 438 in client

5. Err.Raise : Automation Error

6. Automation Err 440 when raising error in Class_Initialize

7. Automation Err 440 when raising error in Class_Initialize

8. Automation Err 440 when raising error in Class_Initialize

9. Err.Raise in OLE Server EXE not raising error in calling program

10. Err.Raise - error not being re-raised all the way to top of the call stack

11. OLE Automation Err 440 (What is the Cause)

12. using err.raise method, as to generate app error

 

 
Powered by phpBB® Forum Software