Answered by:
Win10 Wordpad.exe shows memory leak involving enhanced metafiles when saving .rtf file.

Question
-
Any suggestions as to which forum should I post the following issue?
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
Tuesday, October 22, 2019 11:23 PM
Answers
-
I'd try asking for help over here.
https://answers.microsoft.com/en-us/windows/forum/windows_10
https://social.technet.microsoft.com/Forums/en-US/home?category=windows10itpro
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.
- Edited by Dave PatrickMVP Tuesday, October 22, 2019 11:25 PM
- Proposed as answer by Richard MuellerMVP Wednesday, October 23, 2019 12:19 AM
- Marked as answer by Richard MuellerMVP Wednesday, October 30, 2019 1:09 PM
Tuesday, October 22, 2019 11:25 PM -
Another forum to ask would be here:
https://answers.microsoft.com/en-us/windows/forum/apps_windows_10
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Proposed as answer by Dave PatrickMVP Wednesday, October 23, 2019 1:40 AM
- Marked as answer by Richard MuellerMVP Wednesday, October 30, 2019 1:09 PM
Wednesday, October 23, 2019 12:27 AM
All replies
-
I'd try asking for help over here.
https://answers.microsoft.com/en-us/windows/forum/windows_10
https://social.technet.microsoft.com/Forums/en-US/home?category=windows10itpro
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.
- Edited by Dave PatrickMVP Tuesday, October 22, 2019 11:25 PM
- Proposed as answer by Richard MuellerMVP Wednesday, October 23, 2019 12:19 AM
- Marked as answer by Richard MuellerMVP Wednesday, October 30, 2019 1:09 PM
Tuesday, October 22, 2019 11:25 PM -
Another forum to ask would be here:
https://answers.microsoft.com/en-us/windows/forum/apps_windows_10
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Proposed as answer by Dave PatrickMVP Wednesday, October 23, 2019 1:40 AM
- Marked as answer by Richard MuellerMVP Wednesday, October 30, 2019 1:09 PM
Wednesday, October 23, 2019 12:27 AM -
Dave,
Thanks for the suggestions. I had already posted to answers.microsoft.com but no replies so far.
https://answers.microsoft.com/en-us/windows/forum/all/win10-wordpadexe-shows-memory-leak-involving/d8e0aa77-0cef-45ad-ae53-59d12a78b308
I've now also posted at social.technet.microsoft.com.
https://social.technet.microsoft.com/Forums/en-US/8dddf887-69b9-471c-aed3-d0af35378e44/win10-wordpadexe-shows-memory-leak-involving-enhanced-metafiles-when-saving-rtf-file?forum=win10itprogeneral
Thanks,
Craig
Thursday, October 24, 2019 5:21 PM -
Sounds good, another option is to report this as feedback here.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.Thursday, October 24, 2019 6:09 PM