about _fstati64

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
simeon
Posts: 35
Joined: Fri, 2006-09-15, 09:25
Location: Bulgaria
Contact:

about _fstati64

#1 Post by simeon »

Hello,
OFFile::fseek use _fstati64 to get file size for WIN32 plaforms.
I have a question about that. Why you don't use _fseeki64.

I am writing about that because VS2015 has a bug with _fstati64 on WindowsXP. It doesn't work. https://connect.microsoft.com/VisualStu ... -xp-always

Simeon
Simeon Antonov

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: about _fstati64

#2 Post by J. Riesmeier »

OFFile::fseek use _fstati64 to get file size for WIN32 plaforms.
I have a question about that. Why you don't use _fseeki64.
I guess that's because _fstati64() is the official way of doing it? And...
I am writing about that because VS2015 has a bug with _fstati64 on WindowsXP. It doesn't work.
I didn't knew that (I guess the same applies to the author of this DCMTK function/method). But the comment "Posted by James [MSFT] on 9/15/2015 at 12:24 PM" seems to indicate that the bug is fixed now, right?

Just out of curiosity: Who is still using Windows XP, and who is using VS2015 on/for this outdated Windows version?

simeon
Posts: 35
Joined: Fri, 2006-09-15, 09:25
Location: Bulgaria
Contact:

Re: about _fstati64

#3 Post by simeon »

I was curios why we have to use _fstati64 to implement seek. There is a comment in the file that there is no 64 bit seek for WIN32.

This issue is not fixed yet in VS2015 update 3.

Many users still use Windows XP ;) I know that is old Windows version, but ...

Nevermind, Please delete this topic, because it is meaningless.
Simeon Antonov

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: about _fstati64

#4 Post by J. Riesmeier »

Don't worry, this discussion is certainly not meaningless :)

But, if there is no _fseeki64 on Windows 32-bit and if _fstati64 does not (always) work correctly, what to do then? Do you have a proposal?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest