CDHtmlDialog : Memory Management
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: CDHtmlDialog : Memory Management

  1. #1
    Join Date
    Aug 2012
    Posts
    53

    CDHtmlDialog : Memory Management

    Hey there,

    I have a MFC app that has a CDHtmlDialog embedded in it. During run time i update the HTML content from the C++ code. There's a IMAGE tag in the content and the SRC for the tag is updated multiple times in a second to show different images.

    Basically i go over a WHILE loop in the C++ and call a JavaScript function to update the "src" for the "img" tag.

    The issue am seeing is that, after running this code for a while the application kinda hangs and the system takes up lot's of memory.

    I have no idea how to solve this, as all the code that's in the browser side of app is HTML & JavaScript. I looked through the C++ code plugged all memory leaks there.

    Any suggestions on how to fix this?

    Thanks in advance.

  2. #2
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,612

    Re: CDHtmlDialog : Memory Management

    A while loop does not sound like the correct choice. I recommend you try use a timer ::SetTimer(...) and in the timer handler function update the picture.

    If it still does not help, maybe a bug in the html dialog itself. Make sure you have the latest sdk patches and browser related stuff on your system.
    Nobody cares how it works as long as it works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center