Questions tagged [recycle]
338 questions
16
votes
3 answers
What is worker process recycling....?
I would like to know what is exactly worker process recycling?
What exactly it does at the time of worker process recycling?
Worker process resides in application pool and can be configured
through application pool?
Is that application pool is…

Anil Purswani
- 1,857
- 6
- 35
- 63
15
votes
3 answers
What does Bitmap#recycle() in Android Honeycomb actually DO?
I am writing a very memory intensive application for Android Honeycomb, and I've been very careful to recycle() unused Bitmaps wherever possible; indeed, this is necessary for the application to work at all, as Bitmaps are constantly being cycled in…

Andrew Wyld
- 7,133
- 7
- 54
- 96
15
votes
1 answer
Should I set ASP.NET application pool to auto-recycle?
I have a number of ASP.NET (4.0) web applications that appear to leak (a small amount) of memory during each request. It is such a small amount, that for most use-cases, it will not grow to become a problem for weeks or even months at a time. I…

Assaf
- 1,336
- 1
- 10
- 17
15
votes
2 answers
Typed Array should be recycled after use with #recycle()
My code is showing this warning message:
Typed Array should be recycled after use with #recycle() for obtainedTypedArray
Code:
public View getView(int i, View view, ViewGroup viewgroup)
{
ImageView imageview;
if (view == null)
{
…

Mojo Jojo
- 173
- 2
- 11
13
votes
3 answers
Moving files to Trash Can in Linux using C++
I'm trying to move (delete) a file to a Trash Can (in Linux) using C++ (also using QT4 for GUI). Unfortunately it seems to be quite difficult to do so and as far as I can tell there isn't a unified API for it.
I would like for my application to run…

Engos
- 296
- 1
- 7
13
votes
3 answers
Why Even Recycle an Application Pool?
Maybe someone can shed some light on this simple question:
I have a .NET web application that has been thoroughly vetted. It loads a cache per appdomain (process) whenever one starts and can not fully reply to requests until it completes this cache…

Omer van Kloeten
- 11,800
- 9
- 42
- 53
13
votes
1 answer
How to properly use IRegisteredObject to block app domain shutdown / recycle for web app?
I have a .NET MVC web app which requires time to be properly shutdown and so whenever the IIS app domain is recycled (i.e. a new instance is spun up and receives all new requests while the old instance shuts down waiting for outstanding requests to…

Ryan
- 579
- 1
- 6
- 15
12
votes
5 answers
Does a replacement for Gallery widget with View recycling exist?
The default Gallery widget on Android does not recycle views - everytime the view for a new position is called the widget always calls the getView method of the adapter with convertView set to null.
As you scroll backwards and forwards this ends up…

Joseph Earl
- 23,351
- 11
- 76
- 89
11
votes
0 answers
Consensus on lazy loading Bitmaps in an Adapter (emphasis on Bitmap.recycle())
I see a truckload of suggestions for this, but none (that I've found) take all factors into account, the factors being:
Asynchronous downloading, without duplication (of downloaders and Bitmaps), with canceling downloads/assigning of images that…

kaay
- 1,083
- 1
- 12
- 31
11
votes
0 answers
How to make RecyclerView do recycling inside NestedScrollView?
I tried to put several views, including RecyclerView, into a NestedScrollView. I used setNestedScrollingEnabled(false) and it looked nice for small data sets but started to be laggy for bigger ones.
After spending some time on logging the…

Gaket
- 6,533
- 2
- 37
- 67
11
votes
1 answer
Android How to recycle bitmap correctly when using RecyclerView?
As google's said we must manually call Bitmap.recycle() when the bitmap not use below Android 3.0 because memory are keep in native heap.
So we could have a reference count for a Bitmap and check if need to recycle bitmap in ImageView's…

YUANSHUO ZHU
- 281
- 2
- 6
10
votes
1 answer
To bitmap.recycle(), or not to bitmap.recycle()
A few days ago, we released an app in Play store, which deals with high quality bitmaps and is all about editing them.
Everything was going well when we realized that 20% of devices were giving out of memory errors. So we checked our code and found…

emrahgunduz
- 1,404
- 1
- 13
- 26
10
votes
3 answers
Android ListView updating of Image Thumbnails using AsyncTask Causes View recycling
I have been trying to get thumbnails to work with an AsyncTask for image files in a ListView.
I have been having the common problem of Row Recycling, and thus on scrolling thumbnails are being assigned to wrong rows. I have tried adding tags to the…

Daksh
- 1,177
- 2
- 18
- 28
9
votes
3 answers
application compiles every 15 minutes
I am using ASP.Net4 MVC2 for my application. The first person using the application usually experiences a long wait before the application responds. After that the application is pretty responsive. If the application is idle for 15 minutes, the…

user266909
- 1,841
- 3
- 32
- 58
9
votes
5 answers
Recycling views in custom array adapter: how exactly is it handled?
I am having an unclear issue concerning the recycling of views in a getView method of a custom array adapter.
I understand that elements are reused, but how do I know exact what to implement in the first part of the if statement, and what in the…

Matthias Vanb
- 923
- 5
- 14
- 32