Click here to Skip to main content
15,392,679 members
Everything / General Programming / Memory Management

Memory Management

memory-management

Great Reads

by Greg Utas
Recovering from memory leaks

Latest Articles

by Greg Utas
Recovering from memory leaks

All Articles

Sort by Score

Memory Management 

Please Sign up or sign in to vote.
31 May 2021
OriginalGriff
Another account? What a surprise ... and still you haven't learned a thing from what we've told you. Go back to the answers you got from the other five (or is it six now, I forget) accounts where you've asked the same question over and over -...
Please Sign up or sign in to vote.
30 Jun 2021
OriginalGriff
Just take the double quotes of the word "methods": Quote: I was told the set and get acessors respresents "methods" for setting the value of a field ... They are methods; they are called as normal. Properties are just syntactic sugar to make the...
Please Sign up or sign in to vote.
29 May 2021
OriginalGriff
Another account? More of the same? Go back to all the previous times you have asked the same thing and read them carefully. This time, stop "bleeping over" anything which disagrees with what you already think and try to learn something. You...
Please Sign up or sign in to vote.
13 Apr 2021
CanSyr
1 alternative  
I want to write something in a special area that I created in RAM without using any disk path in a program, then i want to open it from the other program to read and change it. MemoryMappedFile.CreateNew("Test", lenght) --> This function allows...
Please Sign up or sign in to vote.
13 Apr 2021
Richard MacCutchan
linux shared memory - Google Search[^]
Please Sign up or sign in to vote.
27 May 2021
OriginalGriff
Reference types are stored on the heap: value types may be stored on the stack. When you embed a value type in a reference type, it is a part of the class information - and since a reference type is always stored on the heap, the value type is...
Please Sign up or sign in to vote.
28 May 2021
Richard MacCutchan
See Chapter 9 of .NET Book Zero by Charles Petzold[^]. Charles Petzold writes clearly and fluently about all things.
Please Sign up or sign in to vote.
29 May 2021
OriginalGriff
Go read the previous answers, and think about them. You have been told all this repeatedly and I for one am not going to waste another half hour typing it up slightly differently for you again ...
Please Sign up or sign in to vote.
1 Jun 2021
OriginalGriff
Answered only to remove it from the "Unanswered" list. Question has been answered a dozen times to the same poster already.
Please Sign up or sign in to vote.
6 Dec 2021
Piraisudan
Hi Guys, For the below code, when I am running static code analysis, I'm getting the "'alignas' attribute cannot be applied to types" warning. How should I fix this warning? Please let me know if missing anything... template
Please Sign up or sign in to vote.
25 Mar 2022
Member 14858655
1 alternative  
Here I have a List, where DocumentModel holds property byte[] XpsData. After converting byte[] XpsData into XPSDocument to bind in public static XpsDocument ByteToXpsDocument(byte[] sourceXPS) { temp++; ...
Please Sign up or sign in to vote.
12 Jul 2022
Member 15704684
1 alternative  
Is This Problem Called Memory Leak? My Application include 5 Different Form. I Showing One of Them by Using this Code : Form2 frm2 = new Form2(); frm2.ShowDlialog(); Form2 Includes : Buttons, TextBox, Lables, Listbox to Add Items Into the...
Please Sign up or sign in to vote.
12 Jul 2022
Dave Kreskowiak
Task Manager is lying to you. You're seeing the memory that's RESERVED for your application, not how much it's actually using. When you dispose objects or free up any memory used, that memory goes back into the .NET heap it's maintaining for...
Please Sign up or sign in to vote.
5 Mar 2022
Greg Utas
Recovering from memory leaks
Please Sign up or sign in to vote.
27 Jul 2021
OriginalGriff
Because each time you use the new keyword you allocate space on the heap - it uses a bit of memory, even if the form is empty or controls and whatnot. And objects you create with new exist until they are Disposed - which doesn't happen until...
Please Sign up or sign in to vote.
25 Mar 2022
Gerry Schmitz
Quote: The GC does not dispose your objects, as it has no knowledge of IDisposable.Dispose() or IAsyncDisposable.DisposeAsync(). You're not "disposing" the objects that need it (like MemoryStream). ...
Please Sign up or sign in to vote.
30 Jun 2021
Katlyn T
1 alternative  
Do the set and get accessor of a Property (regular or auto-implemented) and Indexer also have a Stack-Frame on the Stack when executed? Since a method (instance or static) has a Stack-Frame on the Stack when executed, I wonder if the same...
Please Sign up or sign in to vote.
27 Jul 2021
4L4K1
1 alternative  
I create a WPF project and put a button on MainWindow write this code in click event to open new windows SecondWindow is an empty windows without any control or code! private void Button_Click(object sender, RoutedEventArgs e) {...