Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C++ Libraries / April 2006

Tip: Looking for answers? Try searching our database.

debug assertion in dtoxtime.c:65 using stat

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kommer - 28 Mar 2006 10:15 GMT
Hi,

In Visual C++ 2005 Express I use the stat function (if tried the _wstat32
_wstat64) to figure out
some status about a file (for example if given file is a directory).

Now on some ordenary files, which has usual create/modification/access time
(between 2005 and 2006) the call of stat() results in a debug assertion in
dtoxtime.c:65 stating that a year is not in a valid range ((( yr - 1900) >=
_BASE_YEAR ) && ( ( yr - 1900 ) <= _MAX_YEAR )).

Unfortunattelly this failure cannot be handled by the calling code and the
process terminates.

Is there any solution for this problem.

Thanks,
Roger
Nelson B - 24 Apr 2006 21:52 GMT
> In Visual C++ 2005 Express I use the stat function (if tried the _wstat32
> _wstat64) to figure out some status about a file (for example if given file
> is a directory).

> Now on some ordenary files, which has usual create/modification/access time
> (between 2005 and 2006) the call of stat() results in a debug assertion in
[quoted text clipped - 5 lines]
>
> Is there any solution for this problem.

I'm having a similar problem.
My program uses findfirst/findnext, and crashes in this assertion:

Debug Assertion Failed!
Program: XXXXXXXXXXXXXXXXXX
File: dtoxtm64.c
Line: 67

Expression: (((long)(yr-1900) >= _BASE_YEAR) && ((long)(yr - 1900) <=
_MAX_YEAR64))

Now, this is an assertion that a file in the file system has a proper date.
Why is it a fatal fault to my program that a file in the file system has
an improper date?  Why should my program be forced to crash because of a
file system issue that is not the fault of my program nor under the
control of my program.  It is not indicative of a programming error in
my code, so why should my code die for it?  Seems like a misuse of an
assertion in the RTL.

Signature

Nelson B


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.