Link to home
Start Free TrialLog in
Avatar of JGMS
JGMS

asked on

Delphi 7 difficulties with comments in code

L.S,

I try to convert existing Delphi 4 code into Delphi 7 (studio architect version) and I experience very strange behaviour of D7 with respect to the use of comments within the code.

It looks like that D7 does not accept the comments (generates an error "line
too long (more than 1023 characters)". It appears that at some location all comments need to be removed. Not in all cases, strange enough.

The D4 programs to be recompiled contain a lot of table handling code using the BDE, and I have a feeling that this has to do with the error.

Does anybody know why this is and what to do about it (except for stripping all valualbe information from the code) ?


Thanks in advance,
JGMS
ASKER CERTIFIED SOLUTION
Avatar of andrewjb
andrewjb
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JGMS
JGMS

ASKER

The code complies normally in D4. A number of comment containing code compile normally, so I do not expect CR/LF causes.
Avatar of Eddie Shipman
Open it in another text editor to ss if the line termination is correct before opening it in Delphi7.
IF you have a cr only or lf only problem, then open your text in WordPad (turn off WordWrap) and save. Wordpad will automatically convert all line ends to cl/lf.
Avatar of JGMS

ASKER

L.S.

The CR/LF point indeed appeared to be the problem, or perhaps part of the problem.

After opening and saving the code in a text editor, it passed the syntax check without errors but generated a fatal error during compilation: "Internal error L1333". No clue on the internet about this, but fortunately the problem dissapeared after running a number of updates from the Borland site.

Thanks, JGMS