incorrect module declaration

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
bitrekz
Posts: 1
Joined: Mon 26 Aug 2019 21:52

incorrect module declaration

Post by bitrekz » Mon 26 Aug 2019 23:12

Im using Securebridge with Rad Studio 10.3. When i try to create OnMessage event for TScWebSocketClient the incorrect module declaration error appear.
I also tried declaring my own function and creating the onmessage event in form constructor but i get this error: [ilink32 Error] Error: Unresolved external '__fastcall TForm1::WSSTestMessage(System::TObject *, System::DynamicArray<unsigned char>, Scwebsocketclient::TScWebSocketMessageType, bool)' referenced from ...\WIN32\DEBUG\MAIN.OBJ
The interesting thing is sometimes the application do compile but OnMessage event doesnt work.
Is it possible to solve these problems somehow?

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

Re: incorrect module declaration

Post by ViktorV » Tue 27 Aug 2019 11:51

This is a known problem of the C++ Builder compiler, and we can't influence it. As a workaround, you can change TArray<System.Byte> to TBytes and assign the event handler in code at run-time instead of assigning it at design-time.

Post Reply