Results 1 to 6 of 6

Thread: Wierd debug signals received while aborting QHttp/QFtp

  1. #1
    Join Date
    Feb 2008
    Posts
    153
    Thanks
    40
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Wierd debug signals received while aborting QHttp/QFtp

    Hi, in my program, one of the functions is to download a file using QHttp and to upload one to an FTP server using QFtp.

    Sometimes a firewall prevents this from being achieved. Or, in another case, I randomly changed the FTP port to 20. This caused the connection to lag indefinitely, until I had to just exit out/restart my program.

    Therefore, it's necessary to create a QTimer of, say 30 seconds, to abort any processes.

    However, in creating one, the debugger seems to receive "signals" whenever I use methods such as QHttp::abort().

    Any help would be much appreciated.

    ~codeslicer
    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2008
    Posts
    153
    Thanks
    40
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Wierd debug signals received while aborting QHttp/QFtp

    This happens on deleteLater() too.

  3. #3
    Join Date
    Feb 2008
    Posts
    153
    Thanks
    40
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Wierd debug signals received while aborting QHttp/QFtp

    *bump*

    Anyone?

  4. #4
    Join Date
    Feb 2008
    Posts
    153
    Thanks
    40
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Red face Re: Wierd debug signals received while aborting QHttp/QFtp

    I can avoid using deleteLater(), but because new QHttp/QFtp objects are created every time, my program takes up more and more RAM.

    Any nudges on how I can delete those objects without my program crashing would be appreciated.

    ~codeslicer

  5. #5
    Join Date
    Feb 2008
    Posts
    153
    Thanks
    40
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Wierd debug signals received while aborting QHttp/QFtp

    *bump*

    Is this a bug then?

  6. #6
    Join Date
    Feb 2008
    Posts
    153
    Thanks
    40
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Wierd debug signals received while aborting QHttp/QFtp

    Ok, I guess this was a bug with the API, but I resolved this issue by reusing the same QFtp/QHttp objects instead of deleting them each time. W00t!

    ~codeslicer

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.