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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:07:20+00:00 2026-05-20T23:07:20+00:00

I have an annoying and unfortunately urgent problem. I started out by trying to

  • 0

I have an annoying and unfortunately urgent problem. I started out by trying to subclass the QGLWidget for my Windows application in Visual Studio 2008 x86. It crashed immediately upon running, as far as I could tell, when the QGLWidget was instantiated. Finally I ended up trying all the included Qt examples for Open GL, and they all behave the same – crashing as follows:

Error message pops up:

“Windows has triggered a breakpoint in
2dpainting.exe…”

The execution halts in qgl_win.cpp (breakpoint indicated):

QGLTemporaryContext::~QGLTemporaryContext()
{
    wglMakeCurrent(d->dmy_pdc, 0);
    wglDeleteContext(d->dmy_rc);
    ReleaseDC(d->dmy_id, d->dmy_pdc);
    DestroyWindow(d->dmy_id);
--> if (d->old_dc && d->old_context)
        wglMakeCurrent(d->old_dc, d->old_context);
}

Output:

… HEAP[2dpainting.exe]: HEAP: Free
Heap block a40c108 modified at a40c288
after it was freed Windows has
triggered a breakpoint in
2dpainting.exe.

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

Also happens when I switch from debug to release. However, I can run most of these Open GL example compiled executables just fine.
I can’t find anything through internet searches. Gurus, please help!

Thanks,
Matt

  • 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-05-20T23:07:20+00:00Added an answer on May 20, 2026 at 11:07 pm

    I resolved the problem by updating my graphics drivers to their latest version. Strange, because I’m using the Intel GMA 965 Express chipset, which is already very old.
    Now all the Qt examples compile just fine. No heap corruption.

    I’m also able to run the main Qt Examples and Demos app from the start menu, which I was never able to do before – it would just crash.

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

Sidebar

Related Questions

I have an annoying problem with the debug mode of Visual C++ 2005. My
I have Visual Studio 2005 (BIDS) set to Check out automatically when a file
I have this annoying problem, that Im pretty sure happens to all of you
I have a annoying problem .. I want my first 4 items in a
i have this annoying problem with my site where, when you click on a
XML is cool in flex, but I have an annoying problem to solve, caused
I have one very annoying issue with Eclipse under Windows. The key bindings for
We have a little annoying problem with our delphi 2007 IDE, from time to
I have been having an issue with Visual Studio 2010 that is driving me
I've an annoying ASP.NET problem: I have a Perl script (see below), which gets

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.