Error capture from DLL
Hi,
I've got an activex component that I want to trap any errors from without having to rewrite the code in the dll(it's 8000 lines-worth). Before the instantiation and call to the function I have "On Error Resume Next". After it I have "If err <> 0 Then". I've forced an error in the dll to test this, but Err always returns a 0. I'm assuming that Err only relates to errors returned from the ASP scripting engine. So when the dll returns an error without error trapping, where does the information for this error come from? Is the only way around this to trap inside the dll? I'm thinking that as the error is being returned back to the executing page and being displayed by IIS there must be some way of trapping this?
All help greatly appreciated
Paul
|