resource-leak
What's a good pattern for a java unit test that ensures that you are properly closing files?
I have an issue in my codebase where we are not properly closing f开发者_C百科ile handles, or probably streams.We eventually get a TooManyOpenFiles exception under very heavy load.Based on the output[详细]
2023-04-08 18:21 分类:问答How to prevent resource leaks while using Open/Save file dialog in c#
we are using save/opn file dialog in our desktop application(C#). When we open the dialog for the first time, handles are increased by 100. After closing the dialog the handles are not getting reduced[详细]
2023-04-06 04:53 分类:问答Debug technique for debugging an unusual memory leak
I have a windows application (legacy) that leaks a lot of memory. It does not leak private bytes, I only see with process explorer that it keeps loading from time to time many instances of the same (t[详细]
2023-04-04 15:26 分类:问答File handle leaking (maybe) in a C library makes trouble with NFS (+python, but that's incidental)
here is a quite cool problem. I have a python script (main) that calls a python module (foo.py) which in turns calls another python module (barwrapper.py) uses LoadLibrary to dynamically open and acc[详细]
2023-03-06 15:50 分类:问答Is this a memory leak? Kernel Resource leak? (C++, parallel studio)
Background: I\'m working on some code to read in data from a file. Examples of data are separated by newlines.Also, there is a meta-level to the data and a semicolon acts as a delimiter to indicate th[详细]
2023-02-27 16:18 分类:问答Memory leak issue. Instument shows error in line 2
NSArray *arrAllAttributes = [[NSArray alloc]init]; arrAllAttributes = [app mtdAllCountry]; [arrAllAttributes retain];[详细]
2023-02-22 10:39 分类:问答Resource leak when using KeyGuardManager
I am trying to use the KeyGuardManager and KeyguardLock to unlock the phone but it only works the first few times and when I kill my application I get:[详细]
2023-02-22 07:07 分类:问答Diagnosing Cause of 100% CPU Usage by "System" Process
I have a Windows server application, implemented in C++ using the Win32 API, that does a lot of serial and TCP/IP communication.As it runs, CPU usage gradually increases, until it reaches 100%.Task Ma[详细]
2023-01-08 21:11 分类:问答debugging a resource leak in a printer driver
I\'m trying to debug a memory leak in a pr开发者_运维技巧inter driver.I\'m pretty sure it\'s a resource leak, not just a plain memory leak because analyzing heap with !heap -s in windbg doesn\'t show[详细]
2022-12-27 22:22 分类:问答Does DataAdapter.Fill() close its connection when an Exception is thrown?
I am using AD开发者_运维百科O.NET (.NET 1.1) in a legacy app. I know that DataAdapter.Fill() opens and closes connections if the connection hasn\'t been opened manually before it\'s given to the DataA[详细]
2022-12-24 11:51 分类:问答