memory-leaks

General-Block 56, 1024, 8, 244, 24 Memory Leaks using UIWebView loadRequest

♀尐吖头ヾ 提交于 2020-01-13 03:17:46
问题 I'm getting memory leaks that i can't figure out through leaks, build/analyze or overall inspection how to repair. I have a very strong notion that it's due to the loadRequest command from my UIWebview loading javascript, but I can't figure out what's wrong. Here's my setup: I have a tabbarcontroller that i programatically create with 4 view controllers: a table view, a mapview, another table view and a webview, respectively. the 1st tableview shows static data. the mapview shows annotations

Why ASP Net Core 2.2 do not release memory?

烈酒焚心 提交于 2020-01-12 15:50:00
问题 I'm testing ASP Net Core 2.2 using default project made from: Visual Studio > File > New > Project > ASP NET Core Web Application > Next > Create. Press IIS Express button on interface and automatically go to https://localhost:44356/api/values Edit : The point is, I'm testing ASP Net Core in case of brute force spamming from people. I have only modified this: [HttpGet] public ActionResult<IEnumerable<string>> Get() { return new string[] { "value1", "value2" }; } Edit : to this, I edited my

Why ASP Net Core 2.2 do not release memory?

杀马特。学长 韩版系。学妹 提交于 2020-01-12 15:47:10
问题 I'm testing ASP Net Core 2.2 using default project made from: Visual Studio > File > New > Project > ASP NET Core Web Application > Next > Create. Press IIS Express button on interface and automatically go to https://localhost:44356/api/values Edit : The point is, I'm testing ASP Net Core in case of brute force spamming from people. I have only modified this: [HttpGet] public ActionResult<IEnumerable<string>> Get() { return new string[] { "value1", "value2" }; } Edit : to this, I edited my

Haskell Space Leak

对着背影说爱祢 提交于 2020-01-12 10:20:13
问题 all. While trying to solve some programming quiz: https://www.hackerrank.com/challenges/missing-numbers , I came across with space leak. Main function is difference , which implements multi-set difference. I've found out that List ':' and Triples (,,) kept on heaps with -hT option profiling. However, only big lists are difference 's two arguments, and it shrinks as difference keeps on tail recursion. But the memory consumed by lists keeps increasing as program runs. Triples is ephemeral array

Haskell Space Leak

ε祈祈猫儿з 提交于 2020-01-12 10:20:09
问题 all. While trying to solve some programming quiz: https://www.hackerrank.com/challenges/missing-numbers , I came across with space leak. Main function is difference , which implements multi-set difference. I've found out that List ':' and Triples (,,) kept on heaps with -hT option profiling. However, only big lists are difference 's two arguments, and it shrinks as difference keeps on tail recursion. But the memory consumed by lists keeps increasing as program runs. Triples is ephemeral array

memory leak with images

本小妞迷上赌 提交于 2020-01-12 07:55:08
问题 I am trying to fix this memory problem in my codebase. I am using an ImageManager to keep track of all the allocations yet some of them are escaping my grasp. This are the leak suspects, but I cannot trace them or know how to interpret the leak suspect window. 来源: https://stackoverflow.com/questions/13255212/memory-leak-with-images

Cocos2D/iOS7: continuously increasing memory usage for boilerplate code

陌路散爱 提交于 2020-01-12 07:25:10
问题 This is what it looks like with iOS7 simulator when application is just running without any user interaction(also I'm not running any code of mine, only boilerplate Cocos2D): No such issue with 5.0->6.1. The code producing this problem is Cocos2D boilerplate code which I tried to minimize with commenting and this is the minimum code from App delegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Create the main window window

Will this C++ code cause a memory leak (casting array new)

一世执手 提交于 2020-01-12 07:17:22
问题 I have been working on some legacy C++ code that uses variable length structures (TAPI), where the structure size will depend on variable length strings. The structures are allocated by casting array new thus: STRUCT* pStruct = (STRUCT*)new BYTE [sizeof(STRUCT) + nPaddingSize]; Later on however the memory is freed using a delete call: delete pStruct; Will this mix of array new [] and non-array delete cause a memory leak or would it depend on the compiler? Would I be better off changing this

Hashtable implementation for Delphi 5

我与影子孤独终老i 提交于 2020-01-12 07:12:23
问题 Do you know a good and free Hashtable imlementation for Delphi 5 ? I need to organize a huge amount of data in a hastable and I am bit worried about memory leak issues that I found in most available implementations on the web. Tks 回答1: You can also check out the open-source / formerly commercial TurboPower SysTools. Not sure how much it is being updated. At one point Julian Bucknall recommended it over his EZDSL library, although that was back when he still worked fur TurboPower and it was

Best way to track down a memory leak (C#) only visible on one customer's box

只愿长相守 提交于 2020-01-12 06:53:06
问题 What is the best way to track down a memory leak that is only found on one customer's test/release box, and no where else? 回答1: dotTrace3.1 (This question is kinda funny, cause I am tracking a mem leak that isn't present on my machine ...) 回答2: Try a memory profiler like ANTS Profiler. 回答3: If the user has the problem it consistently, take a stackdump and analyse in the standard way 回答4: It's either code, data or configuration. Since you say the code is not faulty 100% of the time, I would