February 27th, 2014, 07:42 PM
CDHtmlDialog : Memory Management
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.
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.
Any suggestions on how to fix this?
Thanks in advance.
February 28th, 2014, 03:07 AM
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
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!