memory-leaks

Memory Leak Using NSXMLParser in NSConcreteMapTable

ⅰ亾dé卋堺 提交于 2020-02-02 06:25:24
问题 I'm using NSXMLParser and I get a memory leak that points to NSConcreteMapTable, whatever that is: The leak occurs at this line of code when calling the parser from my AppDelegate.m: I have searched for a solution and can't see what I'm doing wrong. Here is my code. Any help is greatly appreciated. lq // * * * XMLParser.h * * * #import <Foundation/Foundation.h> @protocol NSXMLParserDelegate; @interface XMLParser : NSObject <NSXMLParserDelegate> { NSMutableArray *xmlArray; BOOL

Memory Leak Using NSXMLParser in NSConcreteMapTable

核能气质少年 提交于 2020-02-02 06:25:05
问题 I'm using NSXMLParser and I get a memory leak that points to NSConcreteMapTable, whatever that is: The leak occurs at this line of code when calling the parser from my AppDelegate.m: I have searched for a solution and can't see what I'm doing wrong. Here is my code. Any help is greatly appreciated. lq // * * * XMLParser.h * * * #import <Foundation/Foundation.h> @protocol NSXMLParserDelegate; @interface XMLParser : NSObject <NSXMLParserDelegate> { NSMutableArray *xmlArray; BOOL

Android memory leak with Glide

我是研究僧i 提交于 2020-02-02 05:43:09
问题 I have an activity which loads pictures in ImageViews with glide. Here is a sample of my glide code: Glide.with(ImageVOne.getContext()) .load(geoInfo.getPhotoUrl1()) .skipMemoryCache(true) .priority(Priority.NORMAL) .into(ImageVOne); I load from 1 to 35 pictures, each picture should be between 150ko & 250ko. I cannot reduce that. This activity can be accessed several times in a session from the main activity, and each time it loads different pictures. For example the first time it will be

Memory leak handling Xamarin.Forms

泪湿孤枕 提交于 2020-02-02 04:10:35
问题 I have a memory leak issue in my application which I have created with Xamarin.Forms. My app consists of A ListView with Images. If I click on an item and come back to the ListPage I can see a memory hog in my Output window. I have tried calling GC.Collect() in OnDisappearing() of my ContentPage. I have seen a base.Dispose() in my Android project. But I don't know how to use it. ArticleListPage.xaml <?xml version="1.0" encoding="utf-8"?> <ContentPage xmlns="http://xamarin.com/schemas/2014

Does terminating a program reclaim memory in the same way as free()?

那年仲夏 提交于 2020-02-02 03:17:06
问题 I saw this answer to a stack overflow question that says that freeing memory at the very end of a c program is actually harmful because it moves variables that wouldn't be used again into system memory. I'm confused why the free() method in C would do anything different than the operating system reclaiming the heap at the end of the program. Does anyone know if there is a real difference between free() and termination in terms of memory management and if so how the operating system may treat

ConnectivityManager leaking, not sure how to resolve

為{幸葍}努か 提交于 2020-02-01 04:41:06
问题 So, I have this method that let's me know if the user has an active internet connection. It works well. However, leak canary has identified a memory leak associated with the connectivityManager. I am presently not closing the connectivityManager anywhere in my code at any time that I know of. I've tried to close the connectivityManager in onDestroy. Either that isn't an option or I don't know the code. Truth be told, I simply tried to get auto fill to tell me how to do it. No luck. public

ConnectivityManager leaking, not sure how to resolve

对着背影说爱祢 提交于 2020-02-01 04:41:06
问题 So, I have this method that let's me know if the user has an active internet connection. It works well. However, leak canary has identified a memory leak associated with the connectivityManager. I am presently not closing the connectivityManager anywhere in my code at any time that I know of. I've tried to close the connectivityManager in onDestroy. Either that isn't an option or I don't know the code. Truth be told, I simply tried to get auto fill to tell me how to do it. No luck. public

Understanding Jeprofile output

倖福魔咒の 提交于 2020-01-30 11:23:57
问题 I was able to generate the Jeprofile output as follows based on the descriptions present here jemalloc post Please find the jemalloc output and the graph. > Using local file /bin/java. Using local file jeprof.57473.0.f.heap. > Total: 79372091 B 78084060 98.4% 98.4% 78084060 98.4% > je_prof_backtrace 1288031 1.6% 100.0% 1474342 1.9% > Java_java_util_zip_ZipFile_getZipMessage > 0 0.0% 100.0% 6889972 8.7% 0x00007f3d5ebac3e6 > 0 0.0% 100.0% 270421 0.3% 0x00007f3d5ebb8a79 > 0 0.0% 100.0% 727762 0

How can I debug memory leaks in react-native Expo project?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-30 09:42:05
问题 I am running a react-native Expo project on both ios simulator, which uses XCode, and android emulator, which uses genymotion. There is a crash sometimes when using the app on real android phone. I am hoping to find out the reason debugging it on the emulator. So far, I searched for tools for this, but did not encounter any. Could anyone tell me available tools for debugging memory leaks on genymotion emulator? I also welcome any other advices to fix my problem. Thanks in advance! 回答1: You

free() not freeing up memory properly?

不打扰是莪最后的温柔 提交于 2020-01-30 05:30:48
问题 I'm trying to free up the memory I've allocated with malloc , but the free command doesn't seem to do its job properly according to Eclipse's debugger. How's this possible? Below is a screenshot of my debugger after it supposedly freed up seCurrent->student->year , which is clearly not the case. year was allocated using malloc . alt text http://img693.imageshack.us/img693/7840/codeo.png 回答1: free() does not normally change any values in your program - it just makes adjustments to the C