I have a piece of code that uses standard error handling; the err
object is then passed to a VB ActiveX DLL for display via a MsgBox in a
standard format.
The problem is, the error is always blank with err.number = 0 at
runtime, but in interactive (Debug) mode, everything is fine. So at
runtime it seems the DLL call is working asynchronously, and that
program execution leaves the sub before the error gets displayed!
Any ideas? Responses via e-mail if it's not a problem, ta.
The code (sort of):
sub whatever()
on error goto err_handler
...
some code
...
exit sub
err_handler:
call objDLL.DisplayError(err)
end sub
Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.