SpeedUtilities Processes | DLLs | Operating systems | Manufacturers | CPUs | Ports | Services | Log files | Directories | Internet services | Software packages | Viruses | Network adapters
» An ultimate catalog of computer data

Forum posts for dwm.exe

Performance issue when resizing Win32 containing WPF

I am in the process of migrating an existing legacy project. For now we want to use C++/CLI as a bridge between business logic (native C++) and interface (WPF). I followed this MSDN article on how to host WPF content in a Win32 window as a starting point. However, I cannot wrap my head around this problem: Whenever I resize the host window...

There are serious delays and the window is repainting slowly.
It causes the Desktop Window Manager (dwm.exe) to increase dramatically in memory usage (2 GB in a few seconds of resizing)

I stripped down the code to its bare minimum. A simple, red WPF page and a normal Win32 project with little changes:

namespace ManagedCode {
using namespace System;
using namespace System::Windows::Interop;

void Create(HWND parent) {
HwndSource^ container = gcnew HwndSource(NULL, WS_CHILD | WS_VISIBLE, NULL,
0, 0, 100, 100, 'WPFCONTENT', IntPtr(parent));
Managed::WpfPage^ page = gcnew Managed::WpfPage();
container->RootVisual = page;

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {

This has to be something really stupid.

View complete forum thread with replies

Other posts related to dwm.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

F12 not working in Delphi debugger on Windows 7/8
Is there anything to differentiate microsoft system processes running in a user's session wi…
Lost Windows 7 transparency DWM not working properly
Completely locking down Windows 7 using Python 3.2?
BitmapCache causes WPF application to lock up
Problem with explorer.exe and dwm.exe in Windows 7 [closed]
Dwm.exe memory leak when resizing simple WinForm application
How to get the second word on each line with regex?
Delphi 7 - Screenshot without capturing form - Windows 8 - DWM.exe
VB6 Drag and Drop Performance in Windows 8
Performance issue when resizing Win32 containing WPF

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.