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.
-
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.
When you run the program in the debugger, if you exit the program normally, then the Output window in Visual Studio should show you a list of memory leaks that it finds. This may be helpful in tracking it down.
The difficult we do right away... ...the impossible takes slightly longer.