Alex Rivera | Logout

Unknown build error, 'Exception of type 'System.OutOfMemoryException' was thrown

Asked 2009-07-01T10:44:04.467
14

We have VS.Net solution with 20 projects in it.

Occasionaly, in VS.NET, when we try to build/debug our solution, we get following error:

Unknown build error, 'Exception of type 'System.OutOfMemoryException' was thrown

Only way to "fix" this issue is to reopen Visual Studio and then solution build goes well, but again after some time OutOfMemory exception occur again. It's really annoying to reopen Visual Studio couple times a day, so do you know some workaround for this issue ?

Edit
Report

1 Answer

2

I have the same Issue if I use ReSharper and run several UnitTests (with enabled CodeCoverage).

I also assume this is a ReSharper problem. And since I disble it while I'm running Unittest the Exception never appears again.

BTW - Disabling it when the exception throws (as mentioned in the comments above) doesn't help, because of disabling it while VS is running will not unload it from memory. The only way to force the unload is to tear down all AppDomains which have loaded the DLL. In a VS Package scenario this means you have to tear down the entire VS process :(

answered 2009-07-02T05:07:34.297

Your Answer