Jump to content

Win10 WordPad.exe shows memory leak involving enhanced metafiles when saving .rtf file.


Recommended Posts

Guest C_Kreig
Posted

I have an .rtf file containing enhanced metafiles that shows a memory leak in Wordpad.exe when saving under Win10 but not Win7. In fact resaving with Win7 fixes the leak under Win10, presumably because the 'emfblip' sections are removed. The file can be found at

 

https://1drv.ms/u/s!AvnIu3PsKFxlcWP4oVai664qtHQ?e=4vW9HF

 

To see the leak, open the file in Wordpad, bring up task manager, start resaving the file, watch the memory usage increase with each save.

 

Can someone please investigate?

 

Also, I observe a similar leak involving enhanced metafiles when directly programming the Win10 richedit control with this line:

 

SendMessage(rehWnd, EM_STREAMOUT, (WPARAM)SF_RTF, (LPARAM)&es);

 

Under Win10, the memory allocation increases before the first callback is activated with the streamed-out bytes. Since Wordpad.exe at one time used the richedit control for .rtf text display, I suspect the problems are related.

 

Thanks,

Craig

 

More...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...