Questions tagged [recycle]

338 questions
1
vote
1 answer

Old items visible a while, in listview or gridview, when recycling

This is not a big issue, but it looks strange. In a list or gridview I load images with a delay (e.g. loaded from remote place). I'm recycling the items, using convertView. When I scroll down fast, I see the old images repeated, until the correct…
User
  • 31,811
  • 40
  • 131
  • 232
1
vote
2 answers

Android bitmap size exceeds VM budget error

Android bitmap size exceeds VM budget. My app is getting this error frequently. I have two questions. Do I need to recycle my about activity (it contains some imageviews and buttons and textViews)? What is the difference between .recycle(); and…
John Jared
  • 790
  • 3
  • 16
  • 40
1
vote
2 answers

Reuse Custom Cell using NIB

Hi I'm new to IOS developement and I created a UITableView which uses custom cells that are created in a nib. Below is my code from my ViewController that is loading the cells however if I scroll up and down 3 times the app crashes because I don't…
GFlam
  • 1,109
  • 4
  • 25
  • 38
1
vote
1 answer

Android ICS bitmap recycling

I was using following code in onDestroy to recycle large bitmap in order to restore memory quickly. If I don't do it, application will crash with OutOfMemory error after few screen rotations. Android sucks at handling memory. ImageView imgBG =…
1
vote
2 answers

Why I get Canvas: trying to use a recycled bitmap android.graphics?

I have 4 activities A, B, C and D. Activity A has a menu. One of its options opens Activity D which has a list view. Activity A opens Activity B by a button. Activity B opens Activity C by a button. Activity C has 4 ImageViews that I recycle them…
Bob
  • 22,810
  • 38
  • 143
  • 225
1
vote
1 answer

android recycle all bitmaps in view on view removal

I have a ViewPageron my Kindle Fire app that adds roughly 30 views per Page Activity. There are no references to the bitmaps once they are added (the vars are lost after the local statement block closes). What's the easiest way to recycle all of my…
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
0
votes
2 answers

C threads worth reusing?

Is it worth taking the time to write the code to reuse threads in C, or are they cheap to create and destroy? I'm rendering some CPU only 3D graphics and it was going pretty slow (looked like about 5 fps). I tried using threads to solve this. Using…
Void Star
  • 2,401
  • 4
  • 32
  • 57
0
votes
2 answers

Android bitmap recycle

I am having an issue with bitmap recycle. I am displaying the bitmaps in a grid view . I have about 40-50 thumbnails. when I down load the thumb image from the url I cached it to disk. Set the bitmap on ImageView and call bitmap.recycle(). BUt I…
Chandu
  • 1,049
  • 3
  • 11
  • 18
0
votes
0 answers

Nested Recycle view using a Parent list inside a Child List and remove all data Child list and remove a parent list position in android kotlin?

Nested Recycle view using a Parent list inside a Child List and remove all data Child list and remove a parent list position in android kotlin ? Nested Recycle using a Parent Array inside a child array and data exit one data and remove one data …
0
votes
0 answers

How to save and return an ArrayList from my recycleview adapter after reorder it in recycleview.widget(xml)

I have this code block on my MainActivity, which I have a recycleview and I am able to reorder a list, when I finish I have a button that finalize and save and return the reordered list in order to check if the items is in the right order …
Poseid0n
  • 1
  • 1
0
votes
4 answers

asp.net WCF service slow... will disabling asp.net app recycling help?

I have a WCF service that requires a certain response time (under 1 minute). My problem is that every so often, most often in the mornings the service takes a long time to respond (sometimes over 2 minutes). I'm thinking this is because the app has…
dtc
  • 10,136
  • 16
  • 78
  • 104
0
votes
1 answer

NET. 6 on Docker Container and Application Pool Recycle

I am developing an application on .NET6 using Microsoft Blazor. I have containerized this application to be able to deploy with more flexibility and to avoid Azure Web Apps problems. Azure Web Apps is an Azure service which can host web applications…
Stavros Koureas
  • 1,126
  • 12
  • 34
0
votes
0 answers

Scheduling an App Pool Recycle removes items from a dropdown list

I have an instance running on IIS and the app pool is set to recycle everyday at 2pm to create a new worker process. However, one of the dropdown menus shows no items after the scheduled recycle. At the moment I am fixing this issue by going into…
user17329786
0
votes
2 answers

How to return a new object when the current object is recycled in Java

In the following code the returned matchEntry is recycled, how can I fix that so that the returned matchEntry is not recycled. I want the last matched entry in the loop to be returned The object.clone() method does not seem to be available, and…
Thomas Adrian
  • 3,543
  • 6
  • 32
  • 62
0
votes
2 answers

Recycle all app pools with a .bat file with a delay between each one

I would like to have a delay between each recycled app pool so the CPU doesn't get high. Below is my current .bat file that recycles all my app pools at once. How can I add a delay between each one before the other gets…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341