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

I have an OLE server with a Delete method with this code:

    on error resume next
    m_RS.Delete
    if err.number<> 0 then
        err.raise vbObjectError + 512 + 20, err.source, err.description
        exit sub
    end if

The caller's code is:

    on error resume next
    DBATables.Delete
    if Err.Number = 0 then
        do something

The err.raise in the server is executed because of referential constraints in the
database, however the Err.Number in the caller process is always 0 and the
"do something" lines always execute.  The failure is not limited to this method
and call, all err.raise from the server fail in the caller.

This was working previously, something I have done must have broken it, but I
don't have a clue what it was.  I would greatly appreciate any help you could
give me.



Sat, 05 Sep 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

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

2. err.raise not trappable in class module

3. Err.Raise Not Returning Proper Value

4. Err.Raise doen not work in the following scenario

5. Err.Raise doen not work in the following scenario

6. Err.Raise doen not work in the following scenario

7. Err.Raise Causes Automation Error

8. Err.Raise causes Error

9. Err.Raise : Automation Error

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

11. err.raise in Class_initialize cause an error

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

 

 
Powered by phpBB® Forum Software