Results 1 to 1 of 1

Thread: QNetworkReply::abort crash

  1. #1
    Join Date
    Oct 2009
    Posts
    22
    Thanked 1 Time in 1 Post

    Default QNetworkReply::abort crash

    Hi,

    I'm seeing a consistent crash when aborting a QNetworkReply post operation, I've made a quick sample app to demonstrate (attached). Is this a bug in Qt or is there a better way to abort a post operation?

    I'm aborting the operation in the event loop by calling:

    Qt Code:
    1. reply->abort();
    To copy to clipboard, switch view to plain text mode 

    And in the finished slot, I simply use:

    Qt Code:
    1. reply->deleteLater();
    To copy to clipboard, switch view to plain text mode 

    It seems that the internal encryptedBytesWritten slot is being hit after the request is aborted resulting in the reply being a null pointer and hence the crash.

    Thanks.
    Attached Files Attached Files

Similar Threads

  1. Crash: Heap corruption due to selectedRows()
    By Ankitha Varsha in forum Qt Programming
    Replies: 16
    Last Post: 1st October 2010, 00:55
  2. Replies: 28
    Last Post: 9th March 2010, 08:59
  3. computer crash with Qt Design/ Qt Creator Designer
    By OverTheOCean in forum Qt Tools
    Replies: 1
    Last Post: 26th September 2009, 16:23
  4. QString comparison gives wierd crash
    By supergillis in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2009, 22:09
  5. QTimer ->start(0) + OpenGL + resize/move window => crash
    By anthibug in forum Qt Programming
    Replies: 5
    Last Post: 8th July 2008, 11:01

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.