tagged [memory-leaks]
Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss
Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss I was told I can add the `-XX:+HeapDumpOnOutOfMemoryError` parameter to my JVM start up options to my JBoss start up script to get a ...
- Modified
- 13 Jun at 21:25
Is a memory leak created if a MemoryStream in .NET is not closed?
Is a memory leak created if a MemoryStream in .NET is not closed? I have the following code: Is there any chance that the MemoryStream that I've allocated will somehow fail to be disposed of later?
- Modified
- 24 Oct at 15:41
c# : simulate memory leaks
c# : simulate memory leaks I would like to write the following code in c#. a) small console application that simulates memory leak. b) small console application that would invoke the above application...
- Modified
- 10 Jun at 23:23
Does ListCollectionView leak memory?
Does ListCollectionView leak memory? I've been investigating how to avoid memory leaks caused by strong references to the `INotifyCollectionChanged` event from a view model. I was playing around with ...
- Modified
- 26 Nov at 12:33
How to detect where a Memory Leak is?
How to detect where a Memory Leak is? I have a large website that seems to be sucking up all the memory that is being allocated. There is nothing else on the server beside this site. Within a week it ...
- Modified
- 23 Sep at 03:29
OnDetaching function of behavior is not called
OnDetaching function of behavior is not called I have `WPF behavior` on specific control. When I close the window that hold the control the `OnDetaching` function is not called. The behavior continues...
- Modified
- 20 Dec at 08:16
possible EventEmitter memory leak detected
possible EventEmitter memory leak detected I am getting following warning: ``` (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase...
- Modified
- 11 Dec at 04:6
Disposing a StringBuilder object
Disposing a StringBuilder object How does one effectively dispose a `StringBuilder` object? If an user generates multiple reports in a single sitting, my app ends up using a huge amount of memory. I'v...
- Modified
- 25 Aug at 21:8
Private field captured in anonymous delegate
Private field captured in anonymous delegate Since `delegate` captures variable `this._bar`, does it implicitly hold to the instance of `B`? Will i
- Modified
- 7 Jan at 10:29
Need C# code that will eat up system memory.
Need C# code that will eat up system memory. I need the opposite of good, optimized code. For testing purposes I need a simple program to eat up RAM. Preferably not all memory so that the OS is non-fu...
- Modified
- 12 Dec at 18:45
Best practices to optimize memory in C#
Best practices to optimize memory in C# What are the best practices to optimize memory in C#. I am using following technique to optimize my memory. 1. Dispose an object after use or make it null. 2. U...
- Modified
- 10 Jan at 14:39
Efficiently counting the number of lines of a text file. (200mb+)
Efficiently counting the number of lines of a text file. (200mb+) I have just found out that my script gives me a fatal error: That line is this: So I think it is having difficulty loading the file in...
- Modified
- 29 Jan at 14:26
Is there any way to remove bindings from all bound elements on a form close event?
Is there any way to remove bindings from all bound elements on a form close event? According to this [document](http://blogs.msdn.com/b/jgoldb/archive/2008/02/04/finding-memory-leaks-in-wpf-based-appl...
- Modified
- 21 Apr at 09:9
Memory Leaks in C# WPF
Memory Leaks in C# WPF I could use some advice on tracking down the cause of memory leaks in C#. I understand what is a memory leak and I get why they occur in C# but I'm wondering what tools/strategi...
- Modified
- 22 Oct at 23:31
What are ways to solve Memory Leaks in C#
What are ways to solve Memory Leaks in C# I'm learning C#. From what I know, you have to set things up correctly to have the garbage collector actually delete everything as it should be. I'm looking f...
- Modified
- 30 Apr at 19:10
How to get the amount of memory used by an application
How to get the amount of memory used by an application > [How to get memory available or used in C#](https://stackoverflow.com/questions/750574/how-to-get-memory-available-or-used-in-c-sharp) I want...
- Modified
- 23 May at 12:25
Tracking Down a .NET Windows Service Memory Leak
Tracking Down a .NET Windows Service Memory Leak Before installing my windows service in production, I was looking for reliable tests that I can perform to make sure my code doesn't contain memory lea...
- Modified
- 25 Apr at 18:45
What is the best free memory leak detector for a C/C++ program and its plug-in DLLs?
What is the best free memory leak detector for a C/C++ program and its plug-in DLLs? I have a .exe and many plug-in .dll modules that the .exe loads. (I have source for both.) A cross-platform (with s...
- Modified
- 10 Aug at 08:5
How do you detect memory leaks on iPhone?
How do you detect memory leaks on iPhone? I'm using the Leaks Instruments feature through Xcode to (try and) find memory leaks. I still haven't figured out how to use this program. I click Leaks in th...
- Modified
- 30 Jan at 02:48
WPF CreateBitmapSourceFromHBitmap() memory leak
WPF CreateBitmapSourceFromHBitmap() memory leak I need to draw an image pixel by pixel and display it inside a WPF. I am attempting to do this by using a `System.Drawing.Bitmap` then using `CreateBitm...
- Modified
- 29 Jan at 14:59
How do you detect/avoid Memory leaks in your (Unmanaged) code?
How do you detect/avoid Memory leaks in your (Unmanaged) code? In unmanaged C/C++ code, what are the best practices to detect memory leaks? And coding guidelines to avoid? (As if it's that simple ;) W...
- Modified
- 22 Aug at 17:17
Memory leaks in a Windows Forms application
Memory leaks in a Windows Forms application We are developing a big .NET Windows Forms application. We are facing a memory leak/usage problem in that despite we are disposing the forms. The scenario i...
- Modified
- 22 Feb at 17:48
Why and How to avoid Event Handler memory leaks?
Why and How to avoid Event Handler memory leaks? I just came to realize, by reading some questions and answers on StackOverflow, that adding event handlers using `+=` in C# (or i guess, other .net lan...
- Modified
- 4 Mar at 16:36
Why call Dispose()? Memory leak won't occur?
Why call Dispose()? Memory leak won't occur? : My question isn't getting the main answer that I was looking for. I wasn't clear. I would really like to know two things: 1. Can NOT calling Dispose() ca...
- Modified
- 23 May at 11:45
Memory Leak when using DirectorySearcher.FindAll()
Memory Leak when using DirectorySearcher.FindAll() I have a long running process that needs to do a lot of queries on Active Directory quite often. For this purpose I have been using the System.Direct...
- Modified
- 23 May at 13:45