memory-leaks

What Java memory profiler applications will work on Windows 7 64-bit with Java 1.4 32-bit?

。_饼干妹妹 提交于 2020-01-06 04:50:08
问题 I'm trying to find a memory leak in an old Java 1.4 application. I have tried to use jmp but unfortunately I've had no luck getting it working (is it actually supported in Windows 7?). If anyone knows of any free/open source Java 1.4 memory profilers that definitely work on Windows 7 64-bit, please let me know. 回答1: I used JMP until we moved to Java 1.6. http://www.khelekore.org/jmp/ GCViewer is nice if you're just verifying leaks: http://www.tagtraum.com/gcviewer.html 回答2: SAP has

Is there a workaround for ToolStrip to not leak memory

半腔热情 提交于 2020-01-06 04:47:23
问题 I have a simple form (MainForm) that opens another form (SubForm) which has a ToolStrip on it. There is nothing else on the called form. The calling form only has a button. The memory of the form that is called is never reclaimed because there is an eventhandler for SystemEvents.UserPreferenceChanged. I read that this is an issue that got fixed in .NET 3.5.1. [ EDIT The application runs on 3.5.1 so either it is not realy fixed or I do something different] Can I do something so that the GC can

Trouble Running Leaks Instrument

巧了我就是萌 提交于 2020-01-06 04:46:48
问题 I'm having trouble running the Leaks Instrument since installing the 3.0 SDK. An NDA disclaimer here I don't think this is a 3.0 SDK issue, just a configuration problem. So I'm looking for advice on configuring the tools in question not the 3.0 SDK per se. Here’s the breakdown of the behavior I am seeing. My Application is compiled to OS version 2.2. I can run it out of XCode in debug mode on the Simulator and Device running 2.2, 2.2.1, 3.0. If I start it with Performance Tools -> Leaks, I

Does this code leak memory? (references, new, but no delete) [duplicate]

久未见 提交于 2020-01-06 04:29:12
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Does using references instead of pointers, resolve memory leaks in C++? When I ask this question Does using references instead of pointers, resolve memory leaks in C++? A new question appears and I ask it in this post. Does this code leak memory? class my_class { ... }; my_class& func() { my_class* c = new my_class; return *c; } int main() { my_class& var1 = func(); // I think there is no memory leak. return 0;

Memory Leak from ImageSource/CreateBitmapSourceFromHBitmap (while capturing webcam with AForge)

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 04:06:12
问题 I am trying to output whatever is captured from a webcam to an Image control in a WPF window. I am using the AForge.NET library. Unfortunately, after a few minutes of successful capturing, I am getting an OutOfMemoryException. Likewise, as soon as I start capturing, I can see my memory usage rise continuously in the task manager until the moment of the exception (although there have been a few occasions where memory usage kept rising, then steeply dropped back to its original state, and then

AutoMapper hurting performance in .net application having more than 1327 DTO while mapping

折月煮酒 提交于 2020-01-06 04:01:27
问题 We are using AutoMapper 3.1.1.0 in our Dot net application. We are having lots of classes which neeed to map. Time required to initialize mapping is almost 22 seconds. We are having almost 1327 DTO which need to mapped. And we can say that each DTO having average 8 properties. My concern is for each message we check in list of 1327 mapped DTO, and then use if (MappingManager.MessageMappings.ContainsKey(message.GetType())) { var myMessage = Mapper.Map(message, message.GetType(),

Compiling error when overwriting “new”

▼魔方 西西 提交于 2020-01-06 02:33:08
问题 I'm trying to control mem leaks in my code. In my general header file I've added this code: // You may need to locate mem leaks #define ZEL_CHECK_MEMORY_LEAKS #ifdef ZEL_CHECK_MEMORY_LEAKS #define _CRTDBG_MAP_ALLOC #include <cstdlib> #include <crtdbg.h> #ifdef _DEBUG #ifndef DBG_NEW #define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ ) #define new DBG_NEW #endif #endif // _DEBUG #define zelInitMemoryCheck() \ _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF) #else #define

investigating memory-leaks in azure without powershell

时光怂恿深爱的人放手 提交于 2020-01-06 01:28:45
问题 Can I investigate memory-leaks in azure without powershell? I know it is discribed to download memorydumps with use of powershell-commands on several places on the web but I just hate to work with error-prone handtyped commands. 回答1: Yes, actually it is very easy. Navigate to the website in question with use of the internal url. For example http://yourwebsitename.azurewebsites.net/. Then add the letters .scm. after your websitename. you 'll then get : http://yourwebsitename.scm.azurewebsites

Memory Leak - NSString & NSURL

三世轮回 提交于 2020-01-05 22:42:09
问题 @property ( nonatomic, strong ) NSURL * urlPath; self.urlPath = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"bark" ofType:@"caf"]]; Running ARC, deployment target 4.3. Instruments gives a leak on the self.urlPath = line. The self.urlPath is used later on after the view has appeared to setup the AVSoundPlayer. There is NO leak indicated now on the soundplayer, only on this NSURL line. The audio plays, but when the view is pop'd a memory leak occurs. Any ideas as I've been at

AFNetworking code giving me Memory Leaks

丶灬走出姿态 提交于 2020-01-05 17:51:11
问题 @implementation GetData static NSString *string = @"https://afternoon-springs-7986.herokuapp.com/"; static NSString *baseStr = @"https://afternoon-springs-7986.herokuapp.com/updateInformation"; -(void) postEventInfo: (NSDictionary *) eventInfoObject { NSURL *url = [NSURL URLWithString:string]; // 6.5% // NSURL *baseURL = [NSURL URLWithString:@"http://localhost:5000/"]; UIWindow *window = [[UIApplication sharedApplication] keyWindow]; UIView *topView = window.rootViewController.view; self