> 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