Jump to content
alogrep

2 errors that do not exist?

Recommended Posts

Hello.

Delphi 11.2

I have 2 "errors" that show in this page (see errors.jpg).

Yet the project builds and runs ok. 

I can not decipher the nature of the (false alarm?) errors.

One is this (see error2.jpg)

The declaration of nxcheck is this:

type
  Tnxcheck = class(TForm)
    nxSimpleSession: TnxSimpleSession;
    nxRemoteServerInfoPlugin: TnxRemoteServerInfoPlugin;
    l1: TListBox;
    nxsock: TnxWinsockTransport;
    procedure FormCreate(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    function ison(s: string): boolean;
  end;
var
  nxcheck: Tnxcheck;
implementation
.....

Why create(nil) yields "too many actua parameters"? I have dozenns of create(Nil) in =other places, with no error .

 

The other is shown in error1.jpg.

I can't figure what operator is supposed to be missing here.

Any help, please?

 

 

errors.jpg

error1.jpg

error2.jpg

Share this post


Link to post

error1.jpg.

I'm just guessing to the best of my knowledge. Is Tbasicdm a TDataModule? The parameter is of type TForm.
I don't know if they are interchangeable.

Share this post


Link to post

Could it be a consequential error because of the error in line 255?

Perhaps tnxcheck is redefined?

Share this post


Link to post
13 hours ago, alogrep said:

 

in Tbasicdm.DatamoduleCreate, is there really an underscore in the line after begin? That would be the source of the first error. The second may be a false positive, error insight is easily confused by conditional compilation...

Share this post


Link to post
2 minutes ago, PeterBelow said:

in Tbasicdm.DatamoduleCreate, is there really an underscore in the line after begin? That would be the source of the first error. The second may be a false positive, error insight is easily confused by conditional compilation...

Both are false positives as the original messages says (the project builds and runs ok):

 

Quote

Hello.

Delphi 11.2

I have 2 "errors" that show in this page (see errors.jpg).

Yet the project builds and runs ok. 

 

Share this post


Link to post

Thanks to everybody. It all disapperad, by itself. I guess "Error insight" was the culprit. 

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

×