Re: Can't use TComponent in thread object?



Shouldn't it execute on the Resume call? I create the thread suspended
so I can assign variables for the FTP class inside of TProgressThread.
In TProgressThread's Execute method, I start the FTP download. But
nothing is happening. The FTP works when I use it in the same Unit (no
multi threading). There must be some thing on the thread I missed to
get it going.

I found out why the thread wasn't executing. The Execute() method was
being called but then I quickly exited from it. In the thread class,
after the FTP object called its Receive() method to download, I quickly
destroyed the FTP object. That's why the exit was so fast. I was
hoping it would block with Resume() but I guess it didn't. This means
I need to be sure the FTP object doesn't leak after the thread is
destroyed.

Brett

.



Relevant Pages

  • Re: VSFTP
    ... I have a Windows based server running on an XP machine. ... would be able to execute scripts or other executables from within their ... The server I speak of is the latest version of Serv-U FTP on the XP box, ... Here is a copy of the "Rights" section of the Serv-U help file. ...
    (linux.redhat.misc)
  • Re: How to port surf using C/C++ sockets in windows
    ... Taking control over someones computer is something criminal, ... This causes the CPU to execute the code which was sent by bad guy. ... Read FTP RFC,http://www.faqs.org/rfcs/rfc959.html ... I Thank You for the RFC link that you provided for FTP., ...
    (microsoft.public.win32.programmer.networks)
  • Re: FTPing and Calling an EXE from a SQL Statement
    ... Like I posted in my post to Dan Guzman, I'm now a Manager of Developers and ... I understood that you would like to use FTP within ... > to execute exe file directly from T-SQL statement. ... > Online Partner Support Specialist ...
    (microsoft.public.sqlserver.programming)
  • Re: variable question
    ... Something I failed to mention was that I may be trying to send up to 100 files in a run, so i dont want to be exiting ftp and restarting it every file... ... on the ftp internal commands to copy and purge cos that works, and I coulnt find any other way to execute local commands inside ftp. ... command and then set CI variables so I know what command failed. ... !setvar remotefile ' ' ...
    (comp.sys.hp.mpe)
  • Java compilation
    ... In order to execute my class, ... The object of this class is to start a connection to a FTP ... go to the specified directory and retrieve the ... we provide the delete boolean (6th argument - true if not ...
    (comp.sys.ibm.as400.misc)