PDA

View Full Version : QNetworkReply::abort crash



danc81
4th November 2009, 11:30
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:


reply->abort();

And in the finished slot, I simply use:


reply->deleteLater();

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.