Troubleshooting Article ID dl_prb027
Issue
My script stops with an error message that says
"Not allowed inside the Sub DL_OnSend() or Sub DL_OnReceive() subroutine",
even though the command in question is definitively not executed within
a Sub DL_OnSend() or Sub DL_OnReceive() procedure. What is wrong here?
Applies to:
Docklight Scripting V1.9 (build V1.9.21)
Solution
This behavior is probably caused by bug a in Docklight Scripting V1.9.21:
If you are using "Exit Sub" statements within your in DL_OnSend() or DL_OnReceive() code parts,
Docklight Scripting does not recognize correctly that the event
procedure has been left.
Workaround 1: Use "If ... Then ... Else" structures instead of "Exit Sub".
Workaround 2: Use the customer support version from the link below where the problem has
been fixed. The problem will also be corrected in the next regular software update.
Related Links
Docklight Scripting V1.9.108 Download - fixed problem with "Exit Sub"
back to the Docklight troubleshooting page
|