Results 1 to 6 of 6

Thread: QFTP - No finished or done events after close

  1. #1
    Join Date
    Jun 2009
    Posts
    66
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QFTP - No finished or done events after close

    Hi,

    In my application I test an FTP connection to see if i am able to connect to a server. I do this by doing :-

    ftp->connectToHost("<any ftp site");
    ftp->login();
    ftp->close();

    The login is fine, but with close I get the following events

    close = 4
    Started 4 command=5
    STATE CHANGED - QFtp::Closing, id = 4
    STATE CHANGED - QFtp::Unconnected, id = 4

    I get no finished or done event being signalled. Has anyone any idea why this might be?

    David

  2. #2
    Join Date
    Jun 2009
    Posts
    66
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFTP - No finished or done events after close

    I was just wondering whether anyone had any thoughts on this one.

    After I login to my FTP server using the QFTP class, I get the finished and done signals, but when I then call close(), the state changes as follows :-

    QFTP::LoggedIn
    QFTP::Closing
    QFTP::Unconnected

    but I do not get any finished or done signals emitted. Therefore my app does not know everything is now done, and I can destroy that QFTP object. Does anyone see a similar behaviour, or know how to get around this problem?

    This is on both QT 4.5.2 and the latest 4.6.1. This is on Windows XP

    regards,

    David

  3. #3
    Join Date
    Jun 2009
    Posts
    66
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFTP - No finished or done events after close

    this seems to be a windows only issue. because i do not get the same errors on linux.

    I am going to test on other flavours of windows - other than xp, and see what occurs.

  4. #4
    Join Date
    Jun 2009
    Posts
    66
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFTP - No finished or done events after close

    This problems is caused by something on _my_ windows XP box. I'm not sure what thought.

    I've tested the same code on linux, other flavors of windows, and someone elses XP box, and they all work as exoected. ie, not with the strange behaviour i have reported above. I think i'm going to have to reinstall my own xp box.

  5. #5
    Join Date
    Sep 2013
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: QFTP - No finished or done events after close

    Hi doggrant,

    Apparently I come to the same issue.
    The version of Qt is Qt 4.8.4 on Windows XP with SP3.

    For some reason, signal commandFinished() is not emitted after QFtp::close(). Actually sometimes the signal is correctly sent, but most of the time this is not the case.

    Have you any clues about this problem ?

  6. #6
    Join Date
    Sep 2013
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: QFTP - No finished or done events after close

    After deeper investigations it appears WinXP's firewall was causing hard to debug problems with FTP server responses.
    Switch off the firewall and try again, it might help ...

Similar Threads

  1. get finished signal from a thread
    By ProTonS in forum Qt Programming
    Replies: 4
    Last Post: 21st August 2009, 14:17
  2. QProcess::finished problems again
    By mdicosimo in forum Qt Programming
    Replies: 2
    Last Post: 23rd January 2009, 21:43
  3. QProcess::finished()
    By T1c4L in forum Qt Programming
    Replies: 11
    Last Post: 9th July 2008, 20:06
  4. Getting the moment when resize is finished
    By m_e in forum Qt Programming
    Replies: 4
    Last Post: 7th November 2007, 21:14
  5. Replies: 0
    Last Post: 23rd September 2007, 11:54

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.