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

EConvertError with message 'Invalid argument to date encode'

1,368 views
Skip to first unread message

Karl-Gunnar Hultland

unread,
Feb 15, 2008, 2:17:45 AM2/15/08
to
I have an application that I have been working on since Delphi 2005 came out
(I use D2005 Architect) and all of a sudden when I started my program I get
an EConvertError when I call Application.CreateForm to create my main form.
I have tried reverting to older versions but nothing helps.

Is there anyone out there who can give me some hints where I should look? If
the error was caused by one of the lines of code that I have written in the
OnCreate part for instance then for sure the program would break there and
point me right? I installed some security updates yesterday, is there the
possibility that one of them caused it?

John Herbster

unread,
Feb 15, 2008, 7:07:40 AM2/15/08
to

"Karl-Gunnar Hultland" <karl.h...@vikarieformedlingen.se> wrote
> ... (I use D2005 Architect) and all of a sudden when I started my program I get an EConvertError when I call Application.CreateForm to create my main form.

Karl,
You did not mention what you have tried.
Have you tried debugging it with the IDE?
Have you compiled with DebugDCU's?
Havie you tried stepping through the CreateForm?
HTH, JohnH

Robert Ögren

unread,
Feb 15, 2008, 7:14:46 AM2/15/08
to
Karl-Gunnar Hultland skrev:

Check if some program has changed your regional settings, primarily the
date format. Try changing to another and then back. I know we had
problem with some date format causing similar error messages.

Regards,
Robert

Paul Hughes

unread,
Feb 15, 2008, 7:19:46 AM2/15/08
to
That message comes from the EncodeDate function when one of the parameters
is invalid.

During the form creation, you must have a call to EncodeDate. Have you
changed locale or date formats and parsed the month number into the day
parameter or something like that?

Regards, Paul.


"Karl-Gunnar Hultland" <karl.h...@vikarieformedlingen.se> wrote in
message news:47b53bc9$1...@newsgroups.borland.com...

Russell Jones

unread,
Jun 25, 2008, 1:15:36 AM6/25/08
to
Karl,

Have you just installed XP SP3? There's a large thread in this group
about a similar problem with the IDE (24/05/2008).

Regards,
Russell Jones

0 new messages