Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid argument to date encode

Status
Not open for further replies.

2ffat

Programmer
Oct 23, 1998
4,811
US
Well, let me see if I can describe the problem properly.

We have 7 computers that are all alike; same hardware, same OS (XP SP2 fully patched), same programs. These computers run just one program that is used to measure veneer. I wrote the program so I know what it is doing. The program runs on all the computers except one. This one computer is a backup computer and it was working a couple of months ago. Today, when we tried to start the program on this computer, we get an error that says, "Invalid argument to date encode."

The section of code this occurs on is a class that looks at the date of some backup files and determines if the files are older than two weeks. If I remove this class, the program works, so we know the problem has to do with file dates.

Here is the kicker. If we take an image from a working computer and put it on this hardware, the program works. If we take an image of this computer and put it on a "working" computer, the program doesn't work. This means it had something to do with Windows and not the hardware.

We've looked at the Region and Language and it is correct. Changing this doesn't fix anything.

We've looked at the registry setting in HKEY_USER\.DEFAULT\Control Panel\International and the short date is correct.

We've looked at the date/time setup and it is correct.

We've deleted the directories and recreated them and the files and still no joy.

What else are we missing in XP that would affect the file date? It's driving us bonkers!!!!



James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
I don't fancy you solving this in the XP forum, you might need a higher authority than that.

From a layman's point of view have you run ChkDsk /r on the dodgy computer's image?

Looking at Google, but not understanding anything about your error, folks always seem to be talking about corrupt files. I wish you well.
 
you might need a higher authority than that
You mean the Big Guy (BG, i.e. Bill Gates) :)

Thanks for the try. It has something to do with the Windows installation since we can install Windows on the machine and get it to work. While this is more like a grain of sand in the shoe than a boulder on the foot I would really like to know what caused this. Again, thanks.


James P. Cottingham
-----------------------------------------
I'm number 1,229!
I'm number 1,229!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top