Questions tagged [retained-in-memory]
15 questions
7
votes
4 answers
Retained heap size of a string in java
This is a question that we have had trouble understanding. It's tricky to describe it using text but I hope that the gist will be understood.
I understand that a string's actual content is enclosed in an internal char array. In normal instances…

slbruce
- 103
- 1
- 4
3
votes
1 answer
Rails3: Render an in-memory image in the view
I have a rails app, which has a png file in memory in the controller which was generated by spark_pr.
@pngfile << Spark.plot( [47, 43, 24, 47, 16, 28, 38, 57, 50, 76, 42, 20, 98, 34, 53, 1, 55, 74, 63, 38, 31, 98, 89], :has_min => true, :has_max =>…

Jay Godse
- 15,163
- 16
- 84
- 131
3
votes
1 answer
What's the difference between takeUnretainedValue and takeRetainedValue?
What's the difference between takeUnretainedValue and takeRetainedValue? Based on Apple's documentation:
Both of these methods return the original, unwrapped type of the
object. You choose which method to use based on whether the API you
are…

Aнгел
- 1,361
- 3
- 17
- 32
1
vote
0 answers
How to handle when DatabindingImpl and Parcelable class retain in memory after app closed?
After app close few classes retain in memory. App application (@HiltAndroidApp), DataBindingImpl and Language class which extend Parcelable retain in memory. How to handle this issue?
Please see the attached memory heap dump in memory profiler.

ChandrimG
- 117
- 2
- 8
1
vote
1 answer
In memory tables functionality for Sqlite and other embedded databases
I am looking for a functionality in which i can keep some data in the memory tables for frequent usage and the less frequent data in normal tables (on disk).
This can be achieved in sqlite using the attach command, but problem is that if i have to…

Nadeem
- 75
- 2
- 11
1
vote
1 answer
AppDelegate Being accessed from different classes, from RootController.m
My problem is in getting the information from a controller(which happens to be my rootViewController) to another view. In trying to get access to it through the app delegate, I was not able to get it working. I have found how to do this, but this…

Digiguy
- 163
- 3
- 9
1
vote
1 answer
How to Retain UIDatePicker and UITextField Values When Switching View Controllers?
I have two View Controllers.
View Controller #2 has a UIDatePicker and a UITextField.
If I go back to View Controller #1 then back to View Controller #2, the UIDatePicker has lost its previous selected date and the UITextField is blank.
It was…

mstace
- 177
- 1
- 1
- 8
0
votes
0 answers
In Pyspark how to iterate through each row in a data frame do calculations retain the value and use in next step by partition
Sample Input:
Expected output:
How do I code in Pyspark for the above problem
Problem description:
The respective code will iterate through each row in the dataset partitioned by coll_id_latest. For all the first record total_alloc will be zero…

Adarsh chandrasekhar
- 13
- 3
0
votes
1 answer
VB6 web application - RM or Non-RM - does it really matter?
I'm supporting a legacy VB6 web application. We generally try to use Retained in Memory (RM) components. However, some components are "borrowed" from a Windows application. Since those components contain forms, they cannot be marked as RM. As a…

Matthew Cole
- 1,329
- 2
- 18
- 30
0
votes
2 answers
Teradata Retain value till next Change
I need to store the previous value in a column till there is a change and in case of change it would retain the new value
Example
Input
-------
ID Name Stdt EndDt
1 A 20/01/2019 20/02/2019
1 B 20/02/2019 20/03/2019
1 C …

Anindya
- 1
0
votes
1 answer
In MAT I have Retained Heap with 0 Shallow Heap (?!?)
I'm analyzing a heap dump with Eclipse Memory Analyzer (MAT).
I have a line in Heap Histogram, where Objects and Shallow Heap are 0 but there is a big amount of Retained Heap.
What does it mean? Is it not assigned to an object instance but it's…

Ferenc T
- 766
- 1
- 6
- 12
0
votes
3 answers
Best way to retain variable values in the event of power off?
Is there a way to initialize a value to a memory address other than a specific value? I have a winform that opens at startup and I'd like it to save the user's previous entries. My (crappy) idea is to embed a text file and read the value from that…

BrynnyBob
- 3
- 1
0
votes
1 answer
Is it possible to recycle all data at OnStop() AND use a retainer Fragment?
1)It is considered a good tactic to recycle all bitmaps and data at activity's OnStop method.
2)It's also considered a good tactic to use a retainer Fragment to avoid recreating data at every configuration change.
But I don't see how these two can…

Anonymous
- 4,470
- 3
- 36
- 67
0
votes
2 answers
How does this prevent block retain cycles?
I saw a solution to preventing block retain cycles here
But I am having trouble wrapping my head around why or even how it works.
In the example, a weak self reference is made and acted upon. I can see how this Breaks the cycle. However, within…

DerrickHo328
- 4,664
- 7
- 29
- 50
-2
votes
1 answer
Node js. Where is memory leak?
I'm trying to find memory leak in my snapshots.
Snaphot 1
Snaphot 2
I see that an array is growing, but I can't find any leaks inside.
Thanks for help.

Denis L
- 1