DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2018-08-18, 13:10

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: about _fstati64
PostPosted: Fri, 2016-11-25, 15:48 
Offline

Joined: Fri, 2006-09-15, 09:25
Posts: 32
Location: Bulgaria
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/VisualStudio/feedback/details/1557168/wstat64-returns-1-on-xp-always

Simeon

_________________
Simeon Antonov


Top
 Profile  
 
 Post subject: Re: about _fstati64
PostPosted: Thu, 2016-12-01, 15:59 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1963
Location: Oldenburg, Germany
Quote:
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...

Quote:
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?


Top
 Profile  
 
 Post subject: Re: about _fstati64
PostPosted: Tue, 2016-12-13, 09:59 
Offline

Joined: Fri, 2006-09-15, 09:25
Posts: 32
Location: Bulgaria
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


Top
 Profile  
 
 Post subject: Re: about _fstati64
PostPosted: Tue, 2016-12-13, 10:08 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1963
Location: Oldenburg, Germany
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group