Page 1 of 1

Incorrect method declaration

Posted: Fri 01 Jul 2016 05:31
by Almer
Hi, it is I again. while studying and exploring secure bridge components I ran into another problem. I'm trying to define OnDataToClient and OnDataFromClient events for ScSSHServer component, I get error: "error in module testserver: Incorrect method declaration in class TTestServer." Declaring it manually doesn't help either.

Re: Incorrect method declaration

Posted: Fri 01 Jul 2016 07:53
by ViktorV
This is a known problem of the ะก++Builder compiler, and we can't influence it. As a workaround you can change TArray<System.Byte> to TBytes or TScSFTPFileHandle and assign the event handler in code at run-time instead of assigning it at desig