Share

Dev-C++

Tracker: Bugs

5 WebUpdate fail to detect file size - ID: 1821607
Last Update: Tracker Item Submitted ( paolomedici )

WebThread.pas : line 169
FileSize := InternetSetFilePointer(fFileHandle, 0, nil, FILE_END, 0);

sometimes (with Apache1.x?) fail (return -1)

infact, according to MSDN,

[...] This function cannot be used once the end of the file has been
reached by InternetReadFile. [...]

use of HttpQueryInfo with HTTP_QUERY_CONTENT_LENGTH may be more correct.



Paolo M. ( paolomedici ) - 2007-10-28 12:37

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.