× Components and Libraries for Networking Development, discussions, problems and suggestions

Important The problem with Indy server components on Linux

  • Tigr
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago - 7 years 6 months ago #6546 by Tigr
Good day!

The problem with Indy server components on Linux...When adding component on form CT crashes and closes! :( ... but on Windows this no problem!
How to solve this problem?.... tested CT on Ubuntu, Fedora... the error is the same everywhere! :(
I'm not very well versed in all the intricacies of even the beginner!
Thank you in advance!

TERMINAL:
AddComponent TIdTCPServer Parent=Form1:TForm1 162,52,0,0
Parent is 'Form1:TForm1'
TMainIDE.OnPropHookPersistentAdded A IdTCPServer1:TIdTCPServer
TPkgManager.AddUnitDependenciesForComponentClasses Adding Project Dependency project1 -> pl_indy
TPkgManager.AddUnitDependenciesForComponentClasses Extending Uses unit1.pas IdTCPServer
[TEventsCodeTool.CompleteComponent] CurComponent=IdTCPServer1:TIdTCPServer
TApplication.HandleException Access violation
Stack trace:
$00000000004E7EF0
$00000000018AD741
$000000000084B95E
$000000000084CCA4
$000000000083D3B7
$000000000083D948
$000000000083DC27
$0000000000657176
$000000000063EF44
$0000000000643129
$00000000006570AC
$000000000043584F
$00000000006404D4
$000000000070ECC2
$00000000006C9735
$00000000006D4F2D
$00000000006D500A
[TMainIDE.Destroy] A
WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
TIDEProgressWindow.Notification 0
TIDEProgressWindow.Notification 0
[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: Access violation
Stack trace:
$0000000000000440
$000000000084356E
$0000000000856D68
$0000000000856F60
$00000000004F41B2
$0000000000654721
$0000000000642C96
$0000000000656EE1
$000000000046DCF1
$000000000046EEE1
$0000000000435320
$00000000008FDDBB
$0000000000435320
$0000000000435320
$0000000000495E93
$0000000000435320
$000000000046B0D6
TCustomFormEditor.JITListException List.CurReadStreamClass=nil nil
TApplication.HandleException: there was another exception during showing the first exception
Stack trace:
$00000000004A0050
$0000000000922E84
$0000000000900036
$00000000008FE101
$00000000008FDDBB
$0000000000435320
$0000000000435320
$0000000000495E93
$0000000000435320
$000000000046B0D6
$0000000000439999
$0000000001B3D0ED
$000000000047DF3A
$000000000070ED3C
$00000000006C9735
$00000000006D4F2D
$00000000006D500A
[TMainIDE.Destroy] A
typhon.pp - unhandled exception
Last edit: 7 years 6 months ago by Tigr.

Please Log in or Create an account to join the conversation.

  • frederico augusto marques
  • frederico augusto marques's Avatar
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #6547 by frederico augusto marques
Replied by frederico augusto marques on topic The problem with Indy server components on Linux
I use Ubuntu 12.04 LTS and 14.02 LTS (64 bits) and Indy works fine with CodeTyphon 4.80 ! Which Ubuntu version have you tested ?

Please Log in or Create an account to join the conversation.

  • Tigr
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago #6548 by Tigr
I use ubuntu 14.10 x64

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
7 years 6 months ago - 7 years 6 months ago #6549 by usbdoo
Check this:
162,52,0,0 this is wrong
162.52.0.0 this is ok

In CodeTyphonIns.zip Version:5.10 indy does not work fine.

Makes libdef on version indy-10.2.0.3.
Last edit: 7 years 6 months ago by usbdoo.

Please Log in or Create an account to join the conversation.

  • Tigr
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 6 months ago - 7 years 6 months ago #6550 by Tigr
I tried to use Indy-10.2.0.3 in Lazarus! occurs the same situation!
I think to try to install 10.2.0.1 but I think the same thing wakes up! :(
I think the problem may be in another... I had no experience in writing components - how can you can fix the bug with commas manually changing some source code!:
Check this:
162,52,0,0 this is wrong
162.52.0.0 this is ok
And because of the little experience I have, until the task is quite complex to implement :(
But until realized only one that this problem is due to Linux :( as in Windows it works!
Last edit: 7 years 6 months ago by Tigr.

Please Log in or Create an account to join the conversation.

  • usbdoo
  • Visitor
  • Visitor
7 years 6 months ago - 7 years 6 months ago #6551 by usbdoo
Check this in your Project.lpr.
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
 {$ENDIF}{$ENDIF}  

Project > Project Options> Compiler Options>Others>Custom options
Put this into Custom options
-dUseCThreads
ok
And try.

TIdTCPServer work in linux very good.
Last edit: 7 years 6 months ago by usbdoo.

Please Log in or Create an account to join the conversation.

More
6 years 6 months ago - 6 years 6 months ago #8748 by Marco Pinero
Replied by Marco Pinero on topic The problem with Indy server components on Linux
I have this problem using CT 5.60 and Ubuntu 15.10. When I try to put a TIdHTTPServer on Form, CT crashes and closes.
Last edit: 6 years 6 months ago by Marco Pinero.

Please Log in or Create an account to join the conversation.