This month CLR Inside Out reveals the secrets behind the Large Object Heap-what's there, when it's released, how the garbage collector handles the objects there.
MSDN Magazine June 2008
View Complete Post
In this article, the authors complete the picture for Garbage Collected (GC) heap related memory issues by providing step-by-step instructions on using the CLR Profiler for .NET GC heap memory investigations.
Subramanian Ramaswamy, Vance Morrison
MSDN Magazine October 2009
Although the .NET Framework provides a managed execution environment, it is important to consider object lifetime management and write code that uses and releases resources correctly. The CLR team shows you how.
MSDN Magazine November 2007
I have a button on a page with a Repeater and an ObjectDataSource. To give credit where credit is due, the Repeater's paging functionality is courtesy of ScottGu. (However, I'm using ASP.NET 4.0 and SQL Server 2008, as opposed to ASP.NET 2.0 and SQL Server 2005.)
Anyway, in the button's click event, I need to access the Text property of a Label that's inside the Repeater because it's used as an input parameter in a stored procedure. I'm getting a NullReferenceException when trying to access the Label's Text property. I have researched this error and have tried a few different solutions (involving FindControl and the Repeater's ItemDataBound event), but I haven't been able to get it to work. Any suggestions, in VB or C#, would be greatly appreciated. The code is below.
<asp:Repeater ID="rptText" runat="server" DataSourceID="tbsDataSource"> <HeaderTemplate> <table width="100%" cellspacing="1"> </HeaderTemplate> <ItemTemplate> <%-- some rows removed for brevity --%> <tr> <td><asp:Label
I have many controls like dropdown, radiobuttonlist, etc on my page and I put all these controls inside the update panel so that the page doesn't look to be posting back when something is selected. Now the working on the page is very smooth. But the session object isn't getting refreshed even if I postback to the server and as a result even if the users are working on the page they are being sent to the login screen after 20 mins.
Is there anyway where I could put all the controls in update panel and still refresh the session after any postback(dropdown selection)
Any help is greatly appreciated.
Thanks in advance
We've read a number of MSDN articles, blogs, and forum posts. But we cannot find a problem or explanation that seems to match what we are seeing.
In a certain configuration our application allocates various arrays of 40 or 80 Mb. At one point we have about 500 Mb allocated then the app asks for an 80 Mb array - an out of memory exception is thrown. But, according to a memory analysis
tool and perfmon, there is over 1 Gb physical memory available (not to mention an additional 4 Gb in the page file)
We are completely confused as to why this memory allocation fails. It seems to make no sense.
Any ideas? TIA.
I have a main program that holds static object.
The program launches multi-threads. all of this threads access the same static objec.
Problem is that I don't wish to allow access the same object at the same time for multuiple threads.
I wish to use LOCK inside the object....inside the class....and not write LOCK in the threads. this is frustrating.
is it possible?
How do I do that?