Jump to content
WKB

Internal Error C1118 (D7)

Recommended Posts

Hi!

 I have returned to ICS after many, many years and use THTTPCli for my own WebAPI objects. When I try to build my project I get error C1118 at OverbyteICSWSocket.pas (17241)... If I close Delphi and only RUN the project it is fine, but I can't build it. :-()

 

Any Ideas? (Running Delphi 7 Build 4.453 on a virtual Windows 10 machine )

Share this post


Link to post

That sounds like an IDE or compiler error rather than an ICS error.  I've not really used D7 for 10 years or more, but ICS should still build on it, others have reported errors in D7 which I've fixed this year.

 

Angus

Share this post


Link to post

Internal error are produced when the compiler is confused (Read: bugged). Sometimes it result from earlier error. The best thing to do is quit the IDE, manually delete all DCU (I don't remember if D7 already had the "clean" function. If yes, use it before stopping the IDE). The restart the IDE and compile everything.

 

If this doesn't work, maybe you should use a newer compiler. Now there is the "community Edition" which is "pro" version, free of charge for everyone including business (Up to US$5000,- gross revenue).

 

 

  • Like 1

Share this post


Link to post

It is well-known D7 bug with UInt64. Sometimes it could be solved with explicit typecasts, sometimes only disabling range checks helps.

{$IFDEF WITH_UINT64_C1118_ERROR}{$R-}{$ENDIF}

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×