Incorrect method declaration

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
Almer
Posts: 3
Joined: Thu 30 Jun 2016 07:45

Incorrect method declaration

Post by Almer » Fri 01 Jul 2016 05:31

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.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Incorrect method declaration

Post by ViktorV » Fri 01 Jul 2016 07:53

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

Post Reply