Previous | Next

GetLastError Method

Retrieves the error code of the last error occurred.

Long GetLastError()

Return Value

Type: Long

If there were no errors, the return value is 0. Otherwise, one of the following error codes is returned:

  • 1 - Save folder for downloaded file(s) must be selected.
  • 2 - Save file name for downloaded file must be selected.
  • 3 - Cannot create temporary folder.
  • 4 - Cannot create temporary file.
  • 5 - Cannot open temporary file.
  • 6 - Error while reading temporary file.
  • 7 - Error while writing to temporary file.
  • 8 - Cannot create file.
  • 9 - Error while writing to file.
  • 10 - Invalid file size (must not be 0).
  • 11 - Network error (winsock not initialized).
  • 12 - Invalid URL.
  • 13 - Network error (invalid server address or no Internet connection).
  • 14 - Network error (cannot create socket).
  • 15 - Network error (cannot send data to server).
  • 16 - Network error (cannot receive data from server).
  • 17 - Network error (server error or file not found).
  • 18 - Network error (sending data to server timed out).
  • 19 - Network error (receiving data from server timed out).
  • 20 - Downloading files is already in progress.
  • 21 - Invalid downloaded file size.
  • 22 - Invalid file ID.
  • 23 - Invalid file field.
  • 24 - Invalid file segment index.
  • 25 - Invalid file segment field.
  • 26 - Temporary file is corrupted.
  • 27 - Too many redirections for a single URL (maximum allowed is 5).
  • 28 - Invalid proxy address.
  • 29 - Invalid proxy protocol ID.
  • 30 - Network error (unauthorized: access is denied due to server configuration).
  • 31 - File already exists in download list.
  • 32 - Temporary folder is empty or temporary files are not accessible (no files to download).
  • 33 - Download stopped by user.
  • 34 - Error reading secure data from server.
  • 35 - Network error (cannot connect to server).
  • 36 - Invalid proxy method.
  • 37 - Invalid proxy field.
  • 38 - Invalid progress bar field.
  • 39 - Invalid column ID.
  • 40 - Invalid column field.
  • 41 - Invalid proxy protocol ID.
  • 42 - Invalid protocol.
  • 43 - Too many files.
  • 44 - File too big.
  • 45 - Cannot create save file.
  • 46 - Cannot open save file.