hramenko / bauglir-websocket

Automatically exported from code.google.com/p/bauglir-websocket
0 stars 0 forks source link

Delphi Client Demo won't compile #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Delphi 2009, the latest version of the client demo fails to compile here:

  TTestWebSocketClientConnection = class(TWebSocketClientConnection)
    fFramedText: string;

The error is: [DCC Error] MainFormU.pas(12): E2217 Published field 
'fFramedText' not a class or interface type

Adding private or protected before this line allows it to compile, but then 
clicking "Start Client" fails with no error (i.e. the client does not appear to 
start, no communications to the server takes place, and the "Start" button is 
not disabled; but no error or exception occurs.

Using the pre-compiled version of the Client Demo works fine, and compiling the 
Server Demo works fine.

Original issue reported on code.google.com by e...@24x8.com on 14 Jul 2012 at 5:00

GoogleCodeExporter commented 9 years ago
Hello,
unfortunately I do not own Delphi2009, so I cannot make any changes or testing 
there, all I can say at this point is for you to try to debug ti fully... I 
know it's not actually a solution you may expect, but I cannot do more for 
now... I'll try to get my hands on some demo/trial version of D9 if possible

B.

Original comment by Bronisla...@bauglir.com on 14 Jul 2012 at 7:05

GoogleCodeExporter commented 9 years ago
OK. What version of Delphi did you use?

Also, are you aware of any issues with using Delphi2009 (it is the first Delphi 
that uses Unicode strings)? The Server Demo does compile and work OK (with 
warnings about implicit string conversions), so it seems that the low-level 
WebSockets code does work in Delphi2009.

Original comment by e...@24x8.com on 14 Jul 2012 at 7:15

GoogleCodeExporter commented 9 years ago
Turbo Dephi (Delphi 2005), I'm actually slowly abandoning desktop (Delphi, C#) 
and focusing more and more on web. 
I had trial version of DelphiXE actually to fix unicode and other related 
issues, but it has expired.

Original comment by Bronisla...@bauglir.com on 14 Jul 2012 at 10:35

GoogleCodeExporter commented 9 years ago
Can you compile server on D9 and connect to it with precompiled version of 
client and send data? (plain text, utf-8 text, binary data).

Original comment by Bronisla...@bauglir.com on 14 Jul 2012 at 10:38

GoogleCodeExporter commented 9 years ago
I may have done some changes there... can you try this?
If it wont work, really anything I can suggest now is debugging :/

Original comment by Bronisla...@bauglir.com on 14 Jul 2012 at 10:45

Attachments:

GoogleCodeExporter commented 9 years ago
That works perfectly now. Thank you so much for your help and quick response!

Original comment by e...@24x8.com on 15 Jul 2012 at 5:35

GoogleCodeExporter commented 9 years ago
Glad I could help :)
I'll release new Delphi demo and library.
Thanks for reporting bug!

Original comment by Bronisla...@bauglir.com on 15 Jul 2012 at 10:16