LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-08-2003, 07:41 AM   #1
Arunas
LQ Newbie
 
Registered: May 2003
Posts: 2

Rep: Reputation: 0
Question Kylix Indy TrivialFTPServer on 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
 
Old 05-09-2003, 03:34 AM   #2
Arunas
LQ Newbie
 
Registered: May 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Re: Kylix Indy TrivialFTPServer on Console application

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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kylix console app not running on suse, but on other distros digidrag Programming 1 08-25-2005 07:53 AM
Remember indy 500? eantoranz Linux - Software 0 05-29-2005 12:29 PM
kylix stand alone application leosgb Programming 9 04-27-2005 12:45 PM
add kylix application using kde menu editor leosgb Programming 1 04-21-2005 03:02 AM
why an application (written in kylix) collapses or disappear while it was working? osmany Programming 3 06-17-2004 01:47 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration