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 9003379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:42:17+00:00 2026-06-16T00:42:17+00:00

This seems to be a bug, because on Qt Creator, Q_ASSERT(false) causes my application

  • 0

This seems to be a bug, because on Qt Creator, Q_ASSERT(false) causes my application to quit even though the documentation says it should allow you to break at the assertion:

On Windows, for debug builds, this function will report a _CRT_ERROR
enabling you to connect a debugger to the application.

On Qt Creator:

When compiling my project in Qt Creator+MinGW, the code Q_ASSERT(false); causes the program to display this message (screenshot below), after which the application quits:

This application has requested the Runtime to terminate it in an
unusual way. Please contact the application’s support team for more
information.

enter image description here

and Application Output pane shows this debug output:

ASSERT: "false" in file ..\IntegrateWithQt\main.cpp, line 6
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.

On Visual Studio:

When compiling the same project using Visual Studio (I import it with the Qt Addin), I get a much more useful Abort/Retry/Ignore dialog, where clicking Retry breaks the program at the location of the assert:

enter image description here

The version of Qt I link to both in Qt Creator and in Visual Studio is 4.8.1. Both projects are built in Debug mode.

So how do I get Qt Creator to allow me to break at the line of the assertion in debug mode?

  • 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-16T00:42:18+00:00Added an answer on June 16, 2026 at 12:42 am

    My guess is that you are using Mingw in Qt Creator and MSVC (obviously) in Visual studio. Different compilers produce different code.

    Try using MSVC in Creator (you will need to get a Qt version that was built with that compiler to do that!) and see whether there still are differences.

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

Sidebar

Related Questions

This seems like a bug to me... I accept that automatic properties, defined as
This really seems like a bug to me, but perhaps some databinding gurus can
this seems straightforward enough, I don't know if it's a bug, or just something
Can anyone recreate this issue? It seems to me like a quite serious bug
This isn't a bug because the behaviour is consistent across FF, Chrome, IE9 and
This seems like a bug but I just want to make sure I'm consuming
This seems like a serious bug : private void LayoutRoot_Drop(object sender, DragEventArgs e) {
I can't seem to find solutions to this supposedly simple problem /bug, so here
This seems a 'stupid' question, but let me explain. I'm working for a company
This seems like a repeated question but i'm not able to get my answer.

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.