Hi,
I use OpenLog in a Lotus Workflow environment and do log the errors to the database itself (no external log database). Now there are occasions, where a "Call LogErrorEx("", "", nothing)" does nothing - no LogEvent document is created, but an error itself.
I use the openLog call in an error Block. For testing I created a "division by zero" error in the code and put some printouts after the call (error, number, line).
Result:
======
- without the call the "division by zero" error is displayed correctly with the print statement
- with the call directly before the printout I get an "object variable not set" at line 4 (obviosly from the class) from the print
===== example code =====
on error goto Error_General
…
a=0
b=1/a
…
goto ExitSub
Error_General:
call LogErrorEx("", "", nothing) ' call to open log with obejct variable not set error
print err & " - " & erl
resume ExitSub:
ExitSub:
Exit Sub
===== Code end =====
This is done in the QueryActivityCompleted-Function of Lotus Workflow (if you know what I mean).
I searched your code, but couldn't find anything, especially no line 4 which would make sense. I tried to use debugprint, but somehow I didn't manage to start that (the variable must be set in "Initialize" of the class, am I right?). No print occurred.
Any help would be appreciated.