Questions tagged [recycle]
338 questions
0
votes
2 answers
java.lang.IllegalArgumentException: Cannot draw recycled bitmaps - Android
I'm trying to implement Android-wheel, a library that I can use to imitate a slot machine.
The demo project works fine, it use's android's own drawables => android.R.drawable.*
However when I change the default images to the ones I want it gives me…

Mike Bryant
- 2,455
- 9
- 39
- 60
0
votes
1 answer
AS3, recycling starling objects
We are a couple of guys making a game. Game entities' data are stored in nested arrays. The top level array contains arrays, which correspond to one entity each. By entity I mean the game objects' parameters stored in the array and the starling…

user3180774
- 33
- 2
0
votes
1 answer
How to set OnClickListener of a view inside of a custom adapter's getView() without being recycled
I have a custom adapter which changes the alpha of a view depending on if that particular list item is "valid" or not. I also need to display a toast when the user attempts to click on the invalid item. Unfortunately, due to view recycling, I do not…

Phillip Clark
- 53
- 4
0
votes
0 answers
Prevent temporarily recycling with item renderers
I'm looking for a way to keep unrecycled state on item renderer time to play animation ?
My problem is my animation is played well but if there is another data changed in my datagrid, my item renderer is recycled to play the new animation so the…

Olivier J.
- 3,115
- 11
- 48
- 71
0
votes
2 answers
when should I schedule app pool recycles?
I am currently setting up asp.net mvc site, wcf services etc in IIS 7.5. I am currently configuring the application for app pool's and have a question around app pool recycles. Each of the application rely on each other. At present there are no…

amateur
- 43,371
- 65
- 192
- 320
0
votes
6 answers
Android listview with checkboxes not behaving as expected
This is regarding the recycling issue. I am using a custom adapter to populate the list view. In the custom row there is an image view, two text boxes and a check box. The all the elements get populated but the check box is not populated correctly.…

TharakaNirmana
- 10,237
- 8
- 50
- 69
0
votes
4 answers
Determinate when an object not used by any other threads without lock?
I implementing a high performance thread safe component, using no lock statements, only volatile and Interlocked are used for performance reasons.
I have volatile reference-type member in a class, that contains thread safe instance.
This instance is…

DxCK
- 4,402
- 7
- 50
- 89
0
votes
1 answer
Recycling mechanism in android
I am working with heterogeneous grid-view, i want to implement view recycling in it. I have developed the UI but when i tried to recycle the views reference by removing the views from out of the visible screen and use them for data binding. But,…

shashank
- 439
- 1
- 4
- 17
0
votes
1 answer
Recycling views shows same item multiple times
I have a gridview which shows all apps installed on the device.
Whenever I try to recycle items (Using convertView == null etc.) the same icon and Text shows up multiple times in my grid.
This is my code:
@Override
public View getView(int position,…

user754730
- 1,341
- 5
- 31
- 62
0
votes
1 answer
Recycling ImageView in HorizontalView in android
am new to android..Am having some issues related to recycling of images in Horizontal View. I tried this Link"How to dynamic unload images from gallery?" as refrence.
This is my mainActivity.java:
ContentResolver…

sheik
- 1
- 1
- 2
0
votes
1 answer
Error when select image from gallery
I select 700kb image from gallery and recieve IllegalArgumentException. I link this with ussage of recycle() to save some memory. It bacomes actual problem as i started to get OutOfMemoryError, so i think i have to use recycle. Did I called it in…

Yarh
- 4,459
- 5
- 45
- 95
0
votes
1 answer
How to recycle a bitmap in a AsyncTask? Android
I am writing a small android application that uses an asyncTask to display an image from a web service. The code works but it has been brought to my attention that I should recycle this bitmap.
My question is, is there a way to recycle this bitmap…

Isaac Zais
- 583
- 4
- 13
0
votes
1 answer
Alternative to resetting the asp "Windows Services" every few days
One of my site is on a shared hosting and every few days the site will stop working.
The pages will simply stop loading.
After contacting my host they suggested that I disable/re-enable from their hosting
management tool the windows services for my…

tb.
- 117
- 2
- 3
- 12
0
votes
0 answers
How do I draw 6 masked images faster, such that my tableview doesn't slow down when scrolling
Thing is, I have this custom view (3 of them) in my one cell, and it does a lot of clipping and rendering of images... I really need it to do this faster.
In my drawRect:
[super drawRect:rect];
CGContextRef contextRef =…

JP.
- 544
- 5
- 20
0
votes
1 answer
IIS Hosted WCF Service with TCP endpoint stops after Application Pool Recycle
I have an IIS application which hosts a TCP WCF service in Global.asax. I use that service to make interrole communications between my roles in Windows Azure. The problem is WCF services stops working after application pool recycles(29 Hours). After…

iboware
- 977
- 1
- 12
- 25