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

  • SEARCH
  • Home
  • 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 9112871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:50:22+00:00 2026-06-17T03:50:22+00:00

I got this strange problem: I write an program using Qt( core/gui/sql/webkit ), and

  • 0

I got this strange problem:

I write an program using Qt(core/gui/sql/webkit), and it works just fine.

But a few days ago it suddenly broken. The executable file would EXIT right after it was started, both the DEBUG/RELEASE version have this odd issue.

This is what i’ve tried to figure out the reason:

  • I put a breakpoint right in the file main.cpp, the line QApplication a(argc, argv).But it seems that the debuger even not reach that point.

  • I try my project on an other PC, and the problem is still there.

Any advise is appreciated.

Addition:

ENV: Win7/VS2010/Qt-4.8.4

The main.cpp:

#include "adeditor.h"
#include <QtGui/QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    ADEditor w;
    w.show();
    return a.exec();
}

The adeditor inherits from the class QMainWindow.

FIXED BUT I DONNOT KNOW WHY

Here is the solution:

I create a New project and Copy all the content of each file in the original project and It just worked.

I strongly want to know how it happens so the next time it occurred to me, i would like to know how to deal with i properly .

  • 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-17T03:50:23+00:00Added an answer on June 17, 2026 at 3:50 am

    Posting my comment as an answer so it gets a little bit of visibility for future visitors:

    There’s also the possibility that you have another main function hanging around somewhere that’s being called/linked to instead. – OmnipotentEntity 34 mins ago

    I’ve checked the situation before and there did have another main but after i fixed this ,nothing changed. – helsinki 29 mins ago

    Have you performed a completely clean build from scratch since removing that main? – OmnipotentEntity 23 mins ago

    @OmnipotentEntity: YES! It’s exactly the problem, now I know it, thanks – helsinki 7 mins ago

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got this strange problem using py-amqp and the Flopsy module. I have written
I've got a strange problem with a try/catch block I'm using. I've got this
I've got a strange problem. My rails app looks fine in prod, but I
I've got a strange problem with SQL Server 2000, and I just can't think
I’ve got this strange problem whereby the content within a scroll viewer increases in
I've got this strange problem which I'm sure is well known - When I
I got this strange problem while writing code for an exercise. First when I
I've Typo3 4.5.5 and Templavoila 1.5.5 installed and I got this strange problem in
This is a very strange problem. I've got a rails app in which I
Today I got a really strange problem. Try to execute this C# code: class

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.