Click here to Skip to main content
15,899,126 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionGrouping of Colors to "main" color / nuance. Pin
mm-2k11-May-09 7:49
mm-2k11-May-09 7:49 
Questionadding atext to atextbox in section 1 in crystalreport c# Pin
Member 439903611-May-09 7:21
Member 439903611-May-09 7:21 
QuestionActive Directory Pin
jarbo3a11-May-09 2:05
jarbo3a11-May-09 2:05 
AnswerRe: Active Directory Pin
glumlord12-May-09 8:15
glumlord12-May-09 8:15 
Question.Net memory usage Pin
krishnan.s10-May-09 22:08
krishnan.s10-May-09 22:08 
AnswerRe: .Net memory usage Pin
Eddy Vluggen10-May-09 22:23
professionalEddy Vluggen10-May-09 22:23 
AnswerRe: .Net memory usage Pin
Eddy Vluggen10-May-09 22:40
professionalEddy Vluggen10-May-09 22:40 
AnswerRe: .Net memory usage Pin
Simon P Stevens11-May-09 0:05
Simon P Stevens11-May-09 0:05 
.net works very differently to traditional compiled applications, and you have to remember that and don't carry forward assumptions you have from working with MFC to your .net work.

When a .net app runs it loads up the CLR, parts of the framework and a lot of background stuff. This stuff is used within your apps process to provide all the .net managed services. What you have to remember is that much of this stuff is actually only loaded once for the system, no matter how many .net apps you have running, but task manager still includes this stuff in the working set for each app so it effectively duplicates the number of times it is reported.

The other thing you have to remember is that because .net is a managed language it's memory is treated very differently. the CLR reserves blocks of memory for your .net app even if you aren't using them (This is to provide various efficiency improvements when you do start using memory). Also, the CLR garbage collector will generally only run if there is pressure on the OS to get more available memory, this means that you are saving CPU cycles by not running the GC unnecessarily, so often it will look like your app is using a lot of memory, when in reality most of that memory is unused and ready for collection but just hasn't actually been collected yet. When the OS does require more memory, the GC will run and gather up anything unused by your app.

There's an article here that talks about some of these points (it's quite old and based on .net 1.1 I think but it's points are still relevant):
http://www.itwriting.com/dotnetmem.php[^]

You can also read more about the GC here:
http://msdn.microsoft.com/en-us/library/0xy59wtx.aspx[^]

Simon

QuestionUnable to connect to SQL Server database Pin
v.narasa10-May-09 19:17
v.narasa10-May-09 19:17 
AnswerRe: Unable to connect to SQL Server database Pin
Atif Shahbaz10-May-09 20:04
Atif Shahbaz10-May-09 20:04 
QuestionGetting WebBrowser to be as smart as IE Pin
sethpeck9-May-09 7:14
sethpeck9-May-09 7:14 
QuestionProblems about Using ActiveX Objects in ASP.NET Pin
lynn10078-May-09 20:57
lynn10078-May-09 20:57 
AnswerRe: Problems about Using ActiveX Objects in ASP.NET Pin
lynn10079-May-09 15:25
lynn10079-May-09 15:25 
Question.NET Runtime 2.0 Error Reporting Pin
Evan St. John7-May-09 6:49
Evan St. John7-May-09 6:49 
AnswerRe: .NET Runtime 2.0 Error Reporting Pin
led mike8-May-09 4:27
led mike8-May-09 4:27 
QuestionVB.NET Service find Window with the WIN32 API Function "FindWindow" Pin
kl_ko7-May-09 4:44
kl_ko7-May-09 4:44 
AnswerRe: VB.NET Service find Window with the WIN32 API Function "FindWindow" Pin
Dave Kreskowiak7-May-09 5:38
mveDave Kreskowiak7-May-09 5:38 
AnswerRe: VB.NET Service find Window with the WIN32 API Function "FindWindow" Pin
kl_ko10-May-09 23:17
kl_ko10-May-09 23:17 
GeneralRe: VB.NET Service find Window with the WIN32 API Function "FindWindow" Pin
Dave Kreskowiak11-May-09 11:57
mveDave Kreskowiak11-May-09 11:57 
QuestionAsp.Net server code problem Pin
maria oni7-May-09 0:08
maria oni7-May-09 0:08 
QuestionMutex Releasing [modified] Pin
Tristan Rhodes6-May-09 23:11
Tristan Rhodes6-May-09 23:11 
QuestionRe: Mutex Releasing Pin
datenkabel6-May-09 23:39
datenkabel6-May-09 23:39 
AnswerRe: Mutex Releasing Pin
Tristan Rhodes7-May-09 0:14
Tristan Rhodes7-May-09 0:14 
QuestionSystem.Data.SqlserverCe dll version conflict. Pin
crazylad6-May-09 14:58
crazylad6-May-09 14:58 
AnswerRe: System.Data.SqlserverCe dll version conflict. Pin
Simon P Stevens8-May-09 4:37
Simon P Stevens8-May-09 4:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.