Hi all,

I have created the simplest Qt (5.0.0) application using VS Add-in.
Added the simplest network request:

test.h
Qt Code:
  1. #ifndef TEST_H
  2. #define TEST_H
  3.  
  4. #include <QtWidgets/QMainWindow>
  5. #include <QtNetwork>
  6. #include "ui_test.h"
  7.  
  8. class Test : public QMainWindow
  9. {
  10. Q_OBJECT
  11.  
  12. public:
  13. Test(QWidget *parent = 0);
  14. ~Test();
  15.  
  16. public slots:
  17. void Button_clicked();
  18. void Request_finished(QNetworkReply *reply);
  19.  
  20. private:
  21. Ui::TestClass ui;
  22. };
  23.  
  24. #endif // TEST_H
To copy to clipboard, switch view to plain text mode 

test.cpp
Qt Code:
  1. #include "test.h"
  2. #include <QtWidgets>
  3.  
  4. Test::Test(QWidget *parent)
  5. : QMainWindow(parent)
  6. {
  7. ui.setupUi(this);
  8. QObject::connect(ui.pushButton, SIGNAL(clicked()), this, SLOT(Button_clicked()));
  9.  
  10. }
  11.  
  12. Test::~Test()
  13. {
  14.  
  15. }
  16.  
  17. void Test::Button_clicked()
  18. {
  19. QNetworkAccessManager* manager = new QNetworkAccessManager(this);
  20.  
  21. QObject::connect(manager, SIGNAL(finished(QNetworkReply *)), this, SLOT(Request_finished(QNetworkReply *)));
  22.  
  23. QNetworkRequest request(QUrl("http://www.google.com"));
  24.  
  25. QNetworkReply *reply = manager->get(request);
  26. }
  27.  
  28. void Test::Request_finished(QNetworkReply *reply)
  29. {
  30. reply->deleteLater();
  31. }
To copy to clipboard, switch view to plain text mode 

main.cpp
Qt Code:
  1. #include "test.h"
  2. #include "qmyapp.h"
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. QApplication a(argc, argv);
  7. Test w;
  8. w.show();
  9. return a.exec();
  10. }
To copy to clipboard, switch view to plain text mode 

test.ui contains a single QPushButton pushButton.

Now if I start application and press button, then after main window destroyed I receive the following line in VS Output window:

First-chance exception at 0x74e5b9bc in Test.exe: 0x0000000D: The data is invalid.

What's wrong?
Thank you.