.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Please help: clr20r3, outofmemoryexception

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :WPF


My .NET 3.5 application (VB .net 2008) abnormally shuts down with a message that "The application has encountered a problem and needs to shut down".

Checking the event viewer:

EventType clr20r3, P1 application_name.exe, P2, P3 4784d05b, P4 mscorlib, P5, P6 471ebc5b, P7 xxxx, P8 xx, P9 system.outofmemoryexception, P10 NIL.

The application is deployed successfully at many different clients. But only one of them is facing this problem intermittently. Sometimes this problem occurs 3 times in a day, while at other times it might occur once in a day or two.&n

View Complete Post

More Related Resource Links

EventType clr20r3, P1 devenv.exe, P2 9.0.30729.1, P3 488f2b50, P4 system.drawing, P5, P6 488

Hi,I am facing a strange issue in Visual Studio 2008 Standard SP1, when using WPF Designer (even without using the Designer tab, only XAML tab). Visual Studio crashes very often, without any apparent reason, and in various ways, for example: exits instantly, the IDE displays corrupted UI, when begining compiling it stops responding.There are two new Event Log entries after this: EventType clr20r3, P1 devenv.exe, P2 9.0.30729.1, P3 488f2b50, P4 system.drawing, P5, P6 4889dec2, P7 33d, P8 18, P9 system.outofmemoryexception, P10 NIL. .NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A2E0F92) (0)Worth mentioning:- computer has Windows XP SP3 with the latest updates installed- it crashes on other computer types too- the project has quite a large number of UserControls - it appears that if opening a XAML file with the XML editor instead, it works ok- on other WPF projects it also works okDoes anyone have an ideea why is this happening and solutions? Thanks

'System.OutOfMemoryException' SQL Server 2005

Looking for a solution to SQL Server 2005 'System.OutOfMemoryException' error, or at least the root cause of this error.   Following please find:1) Description of problem2) Exact error message3) Query that fails (against large 'SourceTable', but works against smaller subsets of 'SourceTable' )4) Query that works (above, split apart) on any size table5) Machine and SQL configuration and versions DESCRIPTION OF PROBLEM-------------------------------------------------------I am getting a 'System.OutOfMemoryException' error running a simple query on a large table in SQL SERVER 2005. If I run with a fresh boot, only me on the server, and only SQL Server Management Studio open with 1 query window, I'll get this error when I run it against my full-sized SourceTable.  Task Manager indicates there is still more than 7 Gig of physical memory available! (see system configuration at end of this note).   The query runs to competion if I run it against a smaller 'SourceTable'.    If I break out the matchup to the derived table from the query into a separate step, the query will run until completion against any size table I throw at it.   I've searched the web, and found that people are getting this error with SQL Server 2005, but not with SQL Server 2000.  It looks like people are encountering it in various queries that should work, and in other circumstances such as when runn

System.OutOfMemoryException while fetching 100000 records over WCF 10 times

Hi, I am testing bulk data transfer over WCF service and my scenario is as follows. WCF service contains method GetData which fetch data from DB(100000 records), fills datatable, converts this datatable to array of string and returns this array of string This service is hosted in the windows app programmatically (No config file) AT the client side, proxy object is created using channelfactory In a button click event, simply call to GetData method and holds it into string array, then covert this array back to datatable and assign this datatable to grid. I have written custom class to convert datatable to string array and vice versa which will be available on both sides. Now when I click button to execute this operation, then 9 times it works perfectly fine but on the 10th click it gives System.OutOfMemoryException in custom class method which coverts array to datatable and each time error is on different line. I am unable to find solution for it. I have tried setting all used objects to nothing wherever possible but the error still persists. Can anyone help me on this. Regards, PrabiI can be still better.

Exception of type 'System.OutOfMemoryException' was thrown.

Hi, i am just using select stmt from some view. view defination is also selecting columns from inner join of 3 tables. view count is about 46 millions records. so while selecting from view it gives me: Exception of type 'System.OutOfMemoryException' was thrown. same error occur if i use direct select from those tables instead of select * from view. What is the reason behind this. Any help will be appreciated. Thanks Punia

EventType clr20r3, P1 outlooksync.exe, P2, P3 448d7d31, P4 outlooksync, P5, P6 448d7

I am getting an error on my server that looks like this:

Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date:  2/1/2010
Time:  12:18:33 PM
User:  N/A
Computer: MR-G
EventType clr20r3, P1 outlooksync.exe, P2, P3 448d7d31, P4 outlooksync, P5, P6 448d7d31, P7 28, P8 13d, P9 pszqoadhx1u5zahbhohghldgiy4qixhx, P10 NIL.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
0000: 63 00 6c 00 72 00 32 00   c.l.r.2.
0008: 30 00 72 00 33 00 2c 00   0.r.3.,.
0010: 20 00 6f 00 75 00 74 00    .o.u.t.
0018: 6c 00 6f 00 6f 00 6b 00   l.o.o.k.
0020: 73 00 79 00 6e 00 63 00   s.y.n.c.
0028: 2e 00 65 00 78 00 65 00   ..e.x.e.
0030: 2c 00 20 00 31 00 2e 00   ,. .1...
0038: 30 00 2e 00 30 00 2e 00   0...0...
0040: 30 00 2c 00 20 00 34 00   0.,. .4.
0048: 34 00 38 00 64 00 37 00   4.8.d.7.
0050: 64 00 33 00 31 00 2c 00   d.3.1.,.
0058: 20 00 6f 00 75 00 74 00    .o.u.t.
0060: 6c 00 6f 00 6f 00 6b 0

System.OutOfMemoryException Occurs on SQL Server 2008



      My darabase server which is sql server 2008 Std. x64 edition throws a memory exception of System.OutOfMemoryException on following operations.

1) when I execute an index script which rebuild my volume tables indexes.

2) When I execute a Stotrd proc.


       Once this exception occurs It contimuesly appears on  other operations also. When I restart the whole server (OS) it get back to normal. But once this message appears all the activity is effected with this message.

My memory is 8gb and I am consumis 7 GB

I am using xeion quad core dual processor with Windows Server 20088 std x64

any suggestions?


Nilkanth Desai



EventType clr20r3



Hi everyone,

I am running my application 24*7. It works fine in day time but at night it get crashed. I am running it through scheduler.

It is giving following error in application event...


EventType clr20r3, P1 deduplix.exe, P2 1.0.3014.28632, P3 47f35fed, P4 system.windows.forms, P5, P6 471ebf68, P7 16c6, P8 159, P9 system.componentmodel.win32, P10 NIL.


please help me and tell what can i do?


Server OS is Windows server 2003 standard edition.

I am using one COM dll and one OCX.

Help Analyzing Memory Dump With OutOfMemoryException



I am receiving a system out of memory exception on my web server when users attempt to upload files.  The size of the files seem to be irrelevant as I have users who have large files uploading and some of the problem documents are rather small (~350Kb).  The web application seems to work fine on my own machine as well as others.  Is there something in the memory dump below that could point to the cause of the issue?  Thank you very much!



Type of Analysis Performed   Crash Analysis
Machine Name   
Operating System   Windows Server 2003 Service Pack 2
Number Of Processors   
Process ID   416
Process Image   c:\WINDOWS\system32\inetsrv\w3wp.exe
System Up-Time   00:00:00
Process Up-Time   00:18:32



Thread 13 - System ID

Reading with DataReader into List and OutOfMemoryException


I'm Using a DataReader to Read about 100,000 records,

my code look like :

public static MyTypeList GetMyTypeData()

SqlConnection cnn = ConnectionManager.ConnectionInstance(1);
MyTypeList _MyTypeCollection = null;
SqlCommand ObjCmd = new SqlCommand("SP_Test", cnn);

ObjCmd.CommandType = System.Data.CommandType.StoredProcedure;

ObjCmd.Parameters.AddWithValue("@OrderByColumns", OrderByColumns);

ObjCmd.CommandTimeout = 400;

SqlDataReader ObjDr = ObjCmd.ExecuteReader();
if (ObjDr.HasRows)
_MyTypeCollection = new MyTypeList();

while (ObjDr.Read())
MyType ObjMyType = new MyType();

ObjMyType.MyTypeID = ObjDr["MyTypeID"].ToString() != String.Empty ? int.Parse(ObjDr["MyTypeID"].ToString()) : 0;
ObjMyType.MyTypeFee = ObjDr["MyTypeFee"].ToString() != String.Empty ? float.Pa

clr20R3 error in a WPF application.


I have been unable to find the cause or even a repeatable scenario. I developed this simple WPF application and of course it works on my machine but it throws the following exception on startup on certain other machines:

Log Name:      Application
Source:        Windows Error Reporting
Date:          9/23/2010 11:02:31 AM
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      raschelll-PC.ASGARD.BUYSEASONS.com
Fault bucket 1385223270, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: butt.exe
P3: 4c990807
P4: PresentationFramework
P6: 4b595113
P7: 6253
P8: e1
P9: System.Windows.Markup.XamlParse

Attached files:

These files may be available here:

Popup.IsOpen = true causes System.OutOfMemoryException



I have a google map as an acticeX on my wpf form. Now I want to draw some things on the map, for this I have a transparent popup. The problem is that as soon as i bind the height of the popup I get a System.OutOfMemoryException why is this?

  <Border Name="mapBorder" BorderThickness="1" BorderBrush="Blue" Grid.Row="1" Margin="5,5,5,5">


NET Runtime 2.0 Error Reporting, Event ID: 5000, EventType clr20r3, P1 msadapter.exe, P2, P3


We are getting the following error what would be the root cause.


Our application is divided into 2 projects.


1- C# assembly.

2 - Managed c++ library (assembly)..


What could be the reason for this.

Is it null pointer exception or some other related to Interoperability assembly mscorlib.dll


This is the event viewer log:


Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date:  5/15/2007
Time:  5:55:20 AM
User:  N/A
EventType clr20r3, P1 msadapter.exe, P2, P3 4648d13f, P4 mscorlib, P5, P6 4333ab80, P7 32fc, P8 10, P9 system.objectdisposedexception, P10 NIL.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

clr20r3 mscorlib error

Hello All,

My .NET 2 application gets closed abnormally without any exception. The only thing visible is this error in the event log

EventType clr20r3, P1 catalyst.cats.mainserver.exe, P2, P3 4784d05b, P4 mscorlib, P5, P6 471ebc5b, P7 3404, P8 26d, P9 system.io.ioexception, P10 NIL.

It has been quite long since im looking to fix this error, any help will be highly appreciated.


M. Aamir Malik

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.


I get the following error anytime i change something in the XAML and try and build the project. If I change anything in the code behind it works everytime.... To get it to work i have to get out of the ide come back in place a space in one of the .vb files to change it then it will build..... Any ideas?


Error 107 The "ResourcesGenerator" task failed unexpectedly.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.IO.MemoryStream.set_Capacity(Int32 value)
   at System.IO.MemoryStream.EnsureCapacity(Int32 value)
   at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BinaryWriter.Write(Byte[] buffer, Int32 index, Int32 count)
   at System.Resources.ResourceWriter.WriteValue(ResourceTypeCode typeCode, Object value, BinaryWriter writer, IFormatter objFormatter)
   at System.Resources.ResourceWriter.Generate()
   at System.Resources.ResourceWriter.Dispose(Boolean disposing)
   at Microsoft.Build.Tasks.Windows.ResourcesGenerator.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult) 

.Net 2.0 errors in Windows XP .NET Runtime Optimization Service & EventType clr20r3


I have a program that runs on windows XP using .net 3.5 framework family. After many reinstalls using the redistributable package, the bootstrapper, and windows updates, when launching the program i get "".exe has encountered a problem and needs to close. Event viewer shows this:

.Net Runtime 2.0 Error

EventType clr20r3, P1 "".exe, P2 2010.1.1012.1, P3 4c6168a1, P4 system.configuration, P5, P6 4889de74, P7 277, P8 14, P9 ioibmurhynrxkw0zxkyrvfn0boyyufow, P10 NIL.

There are also these errors in event viewer, that only showed up after installing using Windows Updates.

.NET Runtime Optimization Service (clr_optimization_v2.0.50727_32) - Service reached limit of transient errors. Will shut down. Last error returned from Service Manager: 0x80029c4a.

I followed the advice in another msdn support request, http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/f56cc6e4-c2bf-490c-b87b-3e22b1e6b935 that suggested running:

%windir%\microsoft.net\framework\v2.0.50727\ngen.exe update

%windir%\microsoft.net\framework\v2.0.50727\ngen.exe executequeuedstatus


%windir%\microsoft.net\framework\v2.0.50727\ngen.exe queue status

and the requested output of the update command returns:

Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))

OutOfMemoryException when my library called via COM


A general design pattern we use for applications that generate statements from data files: A statement generator class library is created. It has a couple of properties to set input and output file names, and then a method to generate all of the statements. For testing we create an on-demand windows application which instances, and calls the library via CLR.  In production we have scripts which instance the component and calls the library via COM.  We are making perhaps 4 property value sets, and then making 1 method call. We don't call our generate method for each statement created, but rather, one call to generate all of the statements.

We have several applications generated in this pattern. A few of them generate perhaps 100,000 to 250,000 pages of statements in the generate call.  We create our own PCL files, directly using SYSTEM.IO.

NEVER when run interactively, invoking our library via CLR do we ever have any problem.

When run in production, these applications will fail after about 1 hour wall time with System.OutOfMemoryException.

Does .NET runtime memory management (GC) operate DIFFERENTLY when a class library is invoked via a COM interface, as opposed to a CLR interface?  If not, then what other things to consider?

VS 2008, VB.net, Framework 3.5
Production computer is running Windows Server 2003, releas

STSADM Import giving outofmemoryexception


I'm trying to move few sites in one site collection to a nbrand new site collection. For that I'm trying to export the sites and import into to the new site collection using the below command

stsadm -o import -url http://localhost/tower3 -includeusersecurity -updateversions 1 -filename phsr.dat

and I'm getting the following error when I try to get a Production copy of the site and import into the Lab Server.

Export command I used is

<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-alt:"Calisto MT"; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-alt:"Times New Roman"; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-bidi-
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend