Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 XAML designer process eating up memory

I have just started using Visual studio 2012 and the issue with it is the designer process and the devenv.exe are eating up more than one gigs of memory. question here is the XAML designer process XDesProc.exe never cleans up the memory and loads a lot of designers at once. Don't know anybody notice it because of having high memory. but i have 4 Gigs RAM it just bumps up and uses the whole in a lot. I have also a screenshot which shows like 200 Megs used by just designer.

Task Manager

Edited: it gets worst when i do a build and not in debug mode in release mode it gets stuck and after few minutes application comes up. enter image description here

like image 918
Nivid Dholakia Avatar asked Jul 11 '13 16:07

Nivid Dholakia


1 Answers

Yeah, it's the XAML files! Here's a couple of tips:

If you are not addicted to Design view (I never use it), I would open XAML files as txt files so that they don't have to compile - that should help.

Right-Click on the .xaml file in Solution Explorer
Open with.. 
Select Source Code (Text) Editor
Click <Set as Default> button so  you don't have to do it again.
Click <OK> button

When VisualStudio really pisses me off with it's XAML slowness. I switch to Kaxaml. It's free and super light-weight.

I also keep the Windows Task Manager open and periodically kill of XDesProc.exe's (MS VisualStudio XAML UI Design processes) when they popup. Probably should just write a powershell script or an app that kills those.. (should be pretty simple, create a timer, and on elapsed find and kill)

like image 62
denis morozov Avatar answered Nov 11 '22 18:11

denis morozov