Docklight Support


Troubleshooting Article ID dl_prb015

Issue

I am trying to use the DL.UploadFile() method, but the script gets stuck at this point and no data is transmitted. Strangely enough, everything works for file smaller than 512 bytes.

Applies to: Docklight Scripting V1.6 (build V1.6.8)

Solution

Is there a DL_OnSend() procedure in your script? There is a bug in Docklight Scripting V1.6.8 which causes the script to enter a deadlock situation that can only be ended by pressing "Stop Script". The reason is that Docklight Scripting V1.6.8 tries to pass the UploadFile() data also to a DL_OnSend() call, which cannot be executed while still busy with the DL.UploadFile() command. See the link below for an updated Docklight Scripting release (V1.7), where the problem is fixed. Please also note that inside the DL_OnSend() procedure itself you should never place a DL.UploadFile() call, or any other time consuming functions.

Related Links

Docklight Download

Docklight Scripting Manual - UploadFile


back back to the Docklight troubleshooting page