Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8180757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:17:39+00:00 2026-06-07T00:17:39+00:00

Just recently I’ve installed the Qt libraries on my computer, and as a complete

  • 0

Just recently I’ve installed the Qt libraries on my computer, and as a complete novice I looked up the Qt 4.7 Getting Started guides online.

Just on the first page they provide the following code:

  1        #include <QtGui>
  2
  3        int main(int argv, char **args)
  4        {
  5            QApplication app(argv, args);
  6
  7            QTextEdit textEdit;
  8            QPushButton quitButton("Quit");
  9
 10            QObject::connect(&quitButton, SIGNAL(clicked()), qApp, SLOT(quit()));
 11
 12            QVBoxLayout layout;
 13            layout.addWidget(&textEdit);
 14            layout.addWidget(&quitButton);
 15
 16            QWidget window;
 17            window.setLayout(&layout);
 18
 19            window.show();
 20
 21            return app.exec();
 22        }

Simple stuff, I would suppose. Upon writing this code in Visual Studio Express 2010, building, and running, most everything works. However, when I try to close the window by means of the “Quit” button or the red-x in the top right of the displayed window (initiating “return app.exec()”), I receive the following:

A dialog box saying,

Unhandled exception at 0x77bc15de in ParticleTracker.exe: 0xC0000005: Access violation reading location 0xdf94b4b4.

And console output saying,

Critical error detected c0000374
Windows has triggered a breakpoint in ParticleTracker.exe.

This may be due to a corruption of the heap, which indicates a bug in ParticleTracker.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while ParticleTracker.exe has focus.

Having entered the debug-mode, I continued through the call stack while repeatedly receiving heap corruption errors.

First-chance exception at 0x77c6e6c3 in ParticleTracker.exe: 0xC0000374: A heap has been corrupted.
Unhandled exception at 0x77bc15de in ParticleTracker.exe: 0xC0000374: A heap has been corrupted.

All of the subsequent exceptions occurred at 0x77bc15de in the executable, with the memory address 0xC0000374 as a corrupted heap.

Honestly, I’m not precisely sure how I could even be getting this issue; I’m not well-versed in C++, but there appears to be nothing wrong with the code.

In the Call-Stack, the process is currently stuck at:
ParticleTracker.exe!main(int argv, char** args) Line 20 + 0x27 bytes
If I enter the disassembly the process is stuck at:

return app.exec();
00FE3831  mov         esi,esp  
00FE3833  call        dword ptr [__imp_QApplication::exec (0FE93D0h)]  
00FE3839  cmp         esi,esp  
00FE383B  call        @ILT+320(__RTC_CheckEsp) (0FE1145h)  
00FE3840  mov         dword ptr [ebp-150h],eax  
00FE3846  mov         byte ptr [ebp-4],5  
00FE384A  mov         esi,esp  
00FE384C  lea         ecx,[ebp-84h]  
00FE3852  call        dword ptr [__imp_QWidget::~QWidget (0FE9404h)]  
00FE3858  cmp         esi,esp  

Any tips? Much appreciated. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:17:41+00:00Added an answer on June 7, 2026 at 12:17 am

    Try this one

    #include <QtGui>
    
    int main(int argv, char **args)
    {
          QApplication app(argv, args);
    
          QTextEdit *textEdit = new QTextEdit();
          QPushButton *quitButton = new QPushButton("Quit");
    
          QObject::connect(quitButton, SIGNAL(clicked()), qApp, SLOT(quit()));
    
          QVBoxLayout *layout = new QVBoxLayout();
          layout->addWidget(textEdit);
          layout->addWidget(quitButton);
    
          QWidget *window = new QWidget();
          window->setLayout(layout);
    
          window->show();
    
          return app.exec();
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just recently installed VS 2008 Professional on my computer and I already have
I just recently started toying with output buffering and seem to have run into
I just recently started using this library (the one from CodePlex), but I ran
I just recently started learning RoR and found that Prototype.js is a default javascript
I just recently started using Jinja2 for HTML templating on Google App Engine and
I just recently started using Mono for Android and I am trying to consume
I just recently have started learning about the wonders of **kwargs but I've hit
I just recently installed postgresql for mac with this . The problem I get,
I just recently started working with Qt 4.7.4 64-bit in order to make some
I just recently started using Hudson as a CI server for a project of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.