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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:26:54+00:00 2026-06-11T20:26:54+00:00

I have an MFC application which needs to display a webpage. I’ve added a

  • 0

I have an MFC application which needs to display a webpage. I’ve added a CHtmlView through CSingleDocTemplate which spawns a window and displays the page fine but it leaks memory when running javascript.

The page I’m looking at is genereated by Madcap flare and so it very heavy with javascript. I’m losing about 4K a second just sitting watching the page.

I’ve tried to reduce the problem by letting the user close the document but then I run into a problem with not knowing if the CFrameWnd was closed or not in the main application so not knowing if I need to create a new one or just reuse it.

I’m running this on windows 7 with IE9 installed so if I’m right I should be well clear of the old IE javascript circular references bug.

  • 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-11T20:26:55+00:00Added an answer on June 11, 2026 at 8:26 pm

    Does it happen in both Release and Debug build? I’ve seen similar (somewhat deterministic) errors when freeing dangling pointers or blowing the stack. With a bit of bad luck, the undefined behavior from faulty code could produce memory leaks.

    1. Try enabling all possible runtime checks in your build and see if the error goes away (or is somehow detected).
    2. Try commenting out large code blocks and see if the error goes away.

    I’m just guessing here 🙂

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

Sidebar

Related Questions

I have a win32 GUI (MFC) application which I need to port to a
I have successfully upgraded an MFC application which was compiled with an old version
I have a MFC dialog based application in which I use ::system() function to
I have an MFC application, which i don't want to be closed during the
I'm coding an MFC application in which i have a dialog box with multiple
I have a legacy MFC C++ application for Win CE 4.2 (x86 ONLY) which
I have a MFC application that launches a IWebBrowser2 window. On users computers where
I have a MFC application, which has a worker thread, what I want to
I have an MFC application that I was given (without source code) which opens
I have an MFC application. It has a CMap which contains certain data objects,

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.