|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Indy TrivialFTPServer in Console Application
Hy, has any body programed Console applications On Linux With Kylix?
I have a problem with that... I programmed TFTP server. It works, but not very well. When a client sends request for file, my Server sends a file to the client. Before sending a file, TFTPServer creates thread for transfer and must close it when Transfer is acomplished. but my server never executes OnTransferComplete event. The file is transfered successfully!!! Why? Becauso of that, thread is not closed. More files are transfered - more Threads are queued!!!! When working with Visual environment (with forms) - everything is alright. But only on Console it don't work correctly!!! What is wrong? Is it bug in Indy TrivialFTPServer component? Can any body help me, please? It's very important for me... Any help would be appreciated... Regards, Arka |
|
#2
|
|||
|
|||
|
Hello, maybe this mail would add additional info about my problem.
Server multithreaded property = True. I've found that this problem appears because of Application variable (when working with Forms using Application variable). There is an Application.ProcessMessages or Application.HandleMessage procedures. When I use this in my program - it then works fine too. But Application variable works only when X Server is started (only in graphic linux interface). When I run my program without graphic interface - it raises and error: Could not connect to X Server. What can I do to make my program work like real console application - without graphic interface? Can indy TrivialFTPServer work in console? Please help me somebody.... Any help would be appreciated, Arunas |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Indy TrivialFTPServer in Console Application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|