Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Invalid argument to date encode

667 views
Skip to first unread message

Hershcu S

unread,
May 24, 2008, 5:25:43 AM5/24/08
to
I'm using RAD2007


Hershcu S

unread,
May 24, 2008, 5:22:37 AM5/24/08
to
Hello
I update my os system win xp with, sp3.

Since then, I can't save any unit from any of my application.
It's raise the error "Invalid argument to date encode"

Any suggestions?
I'll prefare not to remove the sp3
Thanks Sorin


Peter Below (TeamB)

unread,
May 24, 2008, 9:02:52 AM5/24/08
to
Hershcu S wrote:

Check the systems language settings, especiually the date format.

--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com

Marc Rohloff [TeamB]

unread,
May 24, 2008, 9:23:50 AM5/24/08
to
On Sat, 24 May 2008 12:22:37 +0300, Hershcu S wrote:

> Hello
> I update my os system win xp with, sp3.
>
> Since then, I can't save any unit from any of my application.
> It's raise the error "Invalid argument to date encode"
>
> Any suggestions?

Have you checked your regional settings?

--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com

John Herbster

unread,
May 24, 2008, 9:25:28 AM5/24/08
to
"Hershcu S" <sor...@zahav.net.il> wrote
> I update my OS system Win XP with, SP3.

> Since then, I can't save any unit from any of my application.
> It's raise the error "Invalid argument to date encode"
> Any suggestions?

Sorin,

While not directly related to your problem, I found this short discussion on your thread subject interesting:
http://groups.google.com/group/borland.public.delphi.database.desktop/browse_thread/thread/5b7ebf1eba3d85b8/0077360229fc3c7d?hl=en&lnk=st&q=%22Invalid+argument+to+date+encode%22#0077360229fc3c7d

Also see Vitebski's QualityCentral report
http://qc.borland.com/wc/qcmain.aspx?d=61610
and especially read the comment by Mil. He may have a work-around for your problem.

If that does not help, then look here:
http://www.google.com/search?hl=en&q=%22Invalid%2Bargument%2Bto%2Bdate%2Bencode%22+WinXP+SP3

Regards, JohnH


Hershcu S

unread,
May 24, 2008, 12:59:02 PM5/24/08
to
Thanks for the help

Following this thread
http://qc.borland.com/wc/qcmain.aspx?d=61610

I try to erase all the _history directory and this solve the problem but
I'll prefer not to do the same with my other application.
It's clear that the sp3 has some conflicts with delphi ide

Thanks again Sorin


Jim P

unread,
May 24, 2008, 4:26:07 PM5/24/08
to
hum

sounds like maybe a permission problem - - or access rights problem.

MS has been making changes in this area and making / forcing more access
right settings - - - where before they allowed full access unless you
set limits - - -

Jim P.

John Herbster

unread,
May 25, 2008, 2:27:16 PM5/25/08
to
"Hershcu S" <sor...@zahav.net.il> wrote> I ... and this solve the problem but ...

Sorin,
If you think that that QualityCentral report describes your
problem, may I suggest that you add your "vote" to the report.
Your vote will give the report a little more priority.
Regards, JohnH

shraga milon

unread,
May 25, 2008, 3:43:36 PM5/25/08
to
I have this same problem and post it a week ago in this forum.
Disable the "save to history" option and it will work again or go back so
sp2 as i did.
Until codegear will make a new hotfix for bds2006/2007 i don't see any
other option.
Shraga
"Hershcu S" <sor...@zahav.net.il> wrote in message
news:4838...@newsgroups.borland.com...

Pieter Zijlstra

unread,
May 25, 2008, 5:28:45 PM5/25/08
to
Shraga Milon wrote:

> Sorin Wrote:
> > I try to erase all the _history directory and this solve the
> > problem but I'll prefer not to do the same with my other
> > application. It's clear that the sp3 has some conflicts with

> > delphi ide.


>
> I have this same problem and post it a week ago in this forum.
> Disable the "save to history" option and it will work again or go
> back so sp2 as i did.

Does it only fail with existing (pre SP3) files in the _history
directory? Is deleting the _history directories, once, enough to make
it work to save subsequent file changes?

--
Pieter

shraga milon

unread,
May 26, 2008, 2:34:22 AM5/26/08
to
Delete the history enable me to save my changes, but after some time, the
error come back :-(
Shraga

"Pieter Zijlstra" <p.zylstr...@hccnet.nl> wrote in message
news:xn0fqm5j...@newsgroups.codegear.com...

Hershcu S

unread,
May 26, 2008, 2:54:06 AM5/26/08
to
> Does it only fail with existing (pre SP3) files in the _history
Yes

> directory? Is deleting the _history directories, once, enough to make
> it work to save subsequent file changes?
Yes, at least till now

Sorin


Pieter Zijlstra

unread,
May 26, 2008, 4:41:40 PM5/26/08
to

Shraga Milon wrote:
> Delete the history enable me to save my changes, but after some time,
> the error come back :-(


Under menu Tools -> Options -> Editor Options there is setting:
"File backup limit" (default value is 10).

Could it be that the error does not happen until after 10 saved changes?
After 10 changes the oldest backups are removed. From the call stack it
looks like that when the IDE is removing the oldest backup file the
error occurs.

BTW did you check you regional settings and then specific the short
date format?
If it helps mine is on dd-MM-yyyy, I also tried some other formats to
see if that would make a difference, but it didn't on my system.

--
Pieter

Pieter Zijlstra

unread,
May 26, 2008, 5:25:09 PM5/26/08
to
Hershcu S wrote:

Sorin,

forgot to ask, what Delphi version are you using, the same like Shraga,
BDS2006 or are you using CRS2007?

--
Pieter

shraga milon

unread,
May 27, 2008, 2:37:57 AM5/27/08
to
Hi Pieter
My short date format in the regional settings is : dd/MM/yyyy
Hershcu wrote that he use RAD2007 .

Shraga

"Pieter Zijlstra" <p.zylstr...@hccnet.nl> wrote in message

news:xn0fqnius...@newsgroups.codegear.com...

Hershcu S

unread,
May 27, 2008, 5:16:30 AM5/27/08
to

> forgot to ask, what Delphi version are you using, the same like Shraga,
> BDS2006 or are you using CRS2007?

Pieter
I'm using RAD2007

Sorin


Hershcu S

unread,
May 27, 2008, 5:25:29 AM5/27/08
to
Sorin,
If you think that that QualityCentral report describes your
problem, may I suggest that you add your "vote" to the report.
Your vote will give the report a little more priority.
Regards, JohnH

I did
Sorin


Hershcu S

unread,
May 27, 2008, 5:36:58 AM5/27/08
to
>
> Under menu Tools -> Options -> Editor Options there is setting:
> "File backup limit" (default value is 10).
>
> Could it be that the error does not happen until after 10 saved changes?
> After 10 changes the oldest backups are removed. From the call stack it
> looks like that when the IDE is removing the oldest backup file the
> error occurs.

Yes you are right. After several saves the error start again

>
> BTW did you check you regional settings and then specific the short
> date format?
> If it helps mine is on dd-MM-yyyy, I also tried some other formats to
> see if that would make a difference, but it didn't on my system.

My setting is, and was before SP3, dd/MM/yyyy.
I also try different settings but it doesn't help

Sorin


Pieter Zijlstra

unread,
May 27, 2008, 3:39:22 PM5/27/08
to
Hershcu S wrote:

> >
> >Under menu Tools -> Options -> Editor Options there is setting:
> > "File backup limit" (default value is 10).
> >
> > Could it be that the error does not happen until after 10 saved
> > changes? After 10 changes the oldest backups are removed. From the
> > call stack it looks like that when the IDE is removing the oldest
> > backup file the error occurs.
>
> Yes you are right. After several saves the error start again

At least, it is reproducible ;)



> >
> > BTW did you check you regional settings and then specific the short
> > date format?
> > If it helps mine is on dd-MM-yyyy, I also tried some other formats
> > to see if that would make a difference, but it didn't on my system.
>
> My setting is, and was before SP3, dd/MM/yyyy.
> I also try different settings but it doesn't help


I'm running out of ideas what might actually cause it.

I think the both of you should provide as much information as you can
in the existing bug report http://qc.codegear.com/wc/qcmain.aspx?d=61610

Do you also have a copy of the call stack when the error occurs?

Both of you seem to be using an Israelian XP, maybe that is part of the
problem? But OTOH the one from the report is using a Russian XP.

Both BDS2006 and CRS2007 are effected by it.

Where is your source code located, local disk or on a server, what type
of server?

Are there any other system settings or the way you use Delphi, you can
think of, which might be different than the way others are using it?


--
Pieter

shraga milon

unread,
May 28, 2008, 3:59:47 AM5/28/08
to
To my opinion, the problem is because SP3 and regional setting of israel.
Microsoft change something in the XP api that make BDS2006 and CRS2007
crazy.
here is my call stack, hope that someone in code gear will do something with
this problem :
+ $E[51F2D6E5]{rtl100.bpl } SysUtils.SysUtils.ConvertError (Line 3237,
"sysutils.pas" + 1) + $E
+ $13[20C4BAC3]{coreide100.bpl} IDEServices.IDEServices.GetFileNameDate
(Line 4593, "IDEServices.pas" + 8) + $13
+ $B[20B408B8]{coreide100.bpl} UIUtils.UIUtils.MakeBackupFileName (Line
1068, "UIUtils.pas" + 8) + $B
+ $6[21C43890]{delphicoreide100.bpl}
PasCppCmds.PasCppCmds.TDesignEnvironment.MakeBackupFileName (Line 644,
"PasCppCmds.pas" + 1) + $6
+ $F[20F16F13]{designide100.bpl}
ComponentDesigner.ComponentDesigner.SafeSave (Line 1607,
"ComponentDesigner.pas" + 3) + $F
+ $1F[20F1EC13]{designide100.bpl}
ComponentDesigner.ComponentDesigner.TComponentRoot.Save (Line 4679,
"ComponentDesigner.pas" + 1) + $1F
+ $5[20BB2B04]{coreide100.bpl}
SourceModule.SourceModule.TCodeISourceModule.SaveFile (Line 1436,
"SourceModule.pas" + 3) + $5
+ $5[20BB03B4]{coreide100.bpl}
SourceModule.SourceModule.TSourceModule.SaveFile (Line 623,
"SourceModule.pas" + 4) + $5
+ $5[20C379F9]{coreide100.bpl} DocModul.DocModul.TDocModule.Save (Line
1347, "DocModul.pas" + 61) + $5
+ $B[20BB13AB]{coreide100.bpl} SourceModule.SourceModule.TSourceModule.Save
(Line 948, "SourceModule.pas" + 17) + $B
+ $10[20B9A432]{coreide100.bpl}
EditorControl.EditorControl.TEditEventHandler.EditSaveFile (Line 7433,
"EditorControl.pas" + 2) + $10
+ $6[5205CA19]{vcl100.bpl } Controls.Controls.TWinControl.WndProc (Line
7246, "Controls.pas" + 105) + $6
+ $6[5205C1A4]{vcl100.bpl } Controls.Controls.TWinControl.MainWndProc
(Line 7021, "Controls.pas" + 3) + $6
+ $0[51F60BC0]{rtl100.bpl } Classes.Classes.StdWndProc (Line 11572,
"classes.pas" + 8) + $0
+ $6A[7E418731]{USER32.dll } GetDC + $6A
+ $14A[7E418811]{USER32.dll } GetDC + $14A
+ $17B[7E428E9B]{USER32.dll } DefWindowProcW + $17B
+ $1C9[7E428EE9]{USER32.dll } DefWindowProcW + $1C9
+ $10[7C90E450]{ntdll.dll } KiUserCallbackDispatcher + $10
+ $44[7E42F406]{USER32.dll } SendMessageA + $44
+ $10[20B84A9E]{coreide100.bpl} VClient.VClient.SendWindowMsg (Line 2673,
"VClient.pas" + 2) + $10
+ $5[20B4A2BE]{coreide100.bpl}
IDEKbd.IDEKbd.@interpret_bmi_macro$qqrp5BMI_tpcp11CmdMapTableppc (Line 39,
"bmi.cpp" + 14) + $5
+ $16E[20B48ED2]{coreide100.bpl} IDEKbd.IDEKbd... (Line 586, "IDEKbd.pas" +
0) + $16E
+ $17[20B821D4]{coreide100.bpl} VClient.VClient.CmdStringProc (Line 504,
"VClient.pas" + 5) + $17
+ $11[20C15B74]{coreide100.bpl}
KbClient.KbClient.TIDEKBDFrameAPI.MapAndEvalInternal (Line 832,
"KbClient.pas" + 10) + $11
+ $12[20C155F9]{coreide100.bpl} KbClient.KbClient.HandleKey (Line 562,
"KbClient.pas" + 6) + $12
+ $1[20C15AFA]{coreide100.bpl}
KbClient.KbClient.TIDEKBDFrameAPI.ProcessKeyStroke (Line 810, "KbClient.pas"
+ 238) + $1
+ $16[20C1663C]{coreide100.bpl}
KbClient.KbClient.TIDEKBDChildAPI.ProcessKeyStroke (Line 1357,
"KbClient.pas" + 14) + $16
+ $18[20B98BF0]{coreide100.bpl}
EditorControl.EditorControl.TCustomEditControl.DoKeyDown (Line 6843,
"EditorControl.pas" + 6) + $18
+ $6[5205CA19]{vcl100.bpl } Controls.Controls.TWinControl.WndProc (Line
7246, "Controls.pas" + 105) + $6
+ $6[5205C1A4]{vcl100.bpl } Controls.Controls.TWinControl.MainWndProc
(Line 7021, "Controls.pas" + 3) + $6
+ $0[51F60BC0]{rtl100.bpl } Classes.Classes.StdWndProc (Line 11572,
"classes.pas" + 8) + $0
+ $6A[7E418731]{USER32.dll } GetDC + $6A
+ $14A[7E418811]{USER32.dll } GetDC + $14A
+ $17B[7E428E9B]{USER32.dll } DefWindowProcW + $17B
+ $1C9[7E428EE9]{USER32.dll } DefWindowProcW + $1C9
+ $10[7C90E450]{ntdll.dll } KiUserCallbackDispatcher + $10
+ $44[7E4292DE]{USER32.dll } SendMessageW + $44
Shraga


"Pieter Zijlstra" <p.zylstr...@hccnet.nl> wrote in message

news:xn0fqovsb...@newsgroups.codegear.com...

Hershcu S

unread,
May 28, 2008, 3:29:45 AM5/28/08
to

> Where is your source code located, local disk or on a server, what type
> of server?

local disk

> Are there any other system settings or the way you use Delphi, you can
> think of, which might be different than the way others are using it?

Thanks Pieter

It's clear by now that there is a conflict between the SP3 and the
Delphi files saves on the _history directory and probably related
to the date regional settings.

I get the same call stack as shraga

Sorin


Pieter Zijlstra

unread,
May 28, 2008, 5:55:04 PM5/28/08
to
shraga milon wrote:

> To my opinion, the problem is because SP3 and regional setting of
> israel. Microsoft change something in the XP api that make BDS2006
> and CRS2007 crazy. here is my call stack, hope that someone in code
> gear will do something with this problem

Thanks for updating the bug report, hopefully CodeGear has enough
information to open it and maybe can they give a solution (or give Bill
Gates a call to create a hotfix ;)

--
Pieter

shraga milon

unread,
May 29, 2008, 2:39:12 AM5/29/08
to
we all hope so
:-)
Shraga

"Pieter Zijlstra" <p.zylstr...@hccnet.nl> wrote in message

news:xn0fqqdwi...@newsgroups.codegear.com...

Russell Jones

unread,
Jun 25, 2008, 1:13:00 AM6/25/08
to
FYI, I've just hit the same problem. I installed SP3 from the big
download, but my regional setting is Australia, and I'm using BDS2005.

Regards,
Russell Jones

tzvikaz

unread,
Jul 15, 2008, 11:59:01 AM7/15/08
to
SP3 cause problems with dates in Tortoise SVN for computers set up as
Israel local as well.

http://tortoisesvn.tigris.org/servlets/ReadMsg?list=users&msgNo=10513


0 new messages