-
February 27th, 2014, 07:42 PM
#1
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.
-
February 28th, 2014, 03:07 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|