Questions tagged [recycle]

338 questions
1
vote
2 answers

clear a bitmap from arraytlist using recycle not working, ANDROID

I created an arraylist for bitmaps and then i want to remove a single bitmap from arraylist when a button is clicked. I used this for clearing bitmap DELETE.setOnClickListener(new OnClickListener() { @Override public void…
Sandeep R
  • 2,284
  • 3
  • 25
  • 51
1
vote
2 answers

Deployed WCF in Windows Azure: One or more role instances are unhealthy. Recycling..Unhandled Exception: System.NullReferenceException?

We have created a WCF service which is working correctly and we deployed it into a Web Role in Windows Azure. The problem is, When my colleague uses his machine and publishes the service using Visual Studio (Right Click > Publish), Everything works…
Alex
  • 237
  • 2
  • 3
  • 8
1
vote
2 answers

Android Listview recycling is with animated row

I am trying to do a delete behavior like iOS7 in ListViews. i.e. clicking on a - sign and animate (translate) the row which contain the - sign to the left where a delete button will show. Then if the user clicks on another - sign on a different row,…
1
vote
1 answer

Is object recycling plausible for entity-component model frameworks

I was reading up on object recycling namely, that done by flixel. The article I was reading is here, in case you were interested as I was. I started to think about how I could integrate a similar system into my entity-component based framework,…
redcodefinal
  • 909
  • 3
  • 11
  • 24
1
vote
1 answer

Bitmap crashes with "Cannot generate texture from the bitmap" message

I work on simple app with animation. I use standard View. In onDraw metod my app paints background (stored as a Bitmap) and a couple of sprites. In the main loop I need to modify the background bitmap (code attached). I use for that setPixel()…
Qbek
  • 11
  • 2
1
vote
0 answers

Android: Why gets the Mapactivity recycled?

I´m starting a MapActivity from another Activity ONCE! When i want to leave the MapActiivty (Google Maps), he reloaded the map... The LogCat says: MapActivity(13290): Recycling dispatcher…
ITCHY1505
  • 61
  • 7
1
vote
0 answers

Unexpected application pool recycling, why?

I know that there are several posts about this, but I have a different scenario. In my case, I disabled all the options that are in the IIS to recycle the application pool in minutes, in requests, at certain time, by memory, virtual and…
Alfonso
  • 11
  • 1
1
vote
1 answer

Gridview Recycling issue with asynctask

When I scroll back and forth through my GridView, my images aren't recycled correctly and will ultimately display the same image throughout the grid. Adapter public class ImageAdapter extends BaseAdapter { private Context mContext; private…
Joseph27
  • 129
  • 3
  • 16
1
vote
2 answers

How do I maintain android checkbox state after scrolling

I've scoured multiple questions on this and still have not found the way to implement what i'm looking for. I have a simple custom cursorAdapter that is in the form |textview checkbox| when scrolling the checkboxes lose state when recycled. I…
Grippie
  • 27
  • 6
1
vote
1 answer

android fragment: recycle bitmap

I am using a DialogFragment from the compatibility package. I have a Bitmap which I need to recycle when the dialog closes, but when I call findViewByID() inside onDestroyView() it returns null. I have also tried keeping a reference to the view from…
meeeee
  • 2,929
  • 3
  • 22
  • 25
1
vote
3 answers

How to effectively recycle a Bitmap which is created as per below code?

I have created Bitmap like below, // create bitmap in the below line Bitmap myBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.googlelogo320x480); And I have set it to an ImageView. my questions are: 1> Do I need to explicitly…
Guna
  • 338
  • 6
  • 17
1
vote
1 answer

Android is trying to use recycled image

I'm getting Canvas: trying to use a recycled bitmap android.graphics.Bitmap@4057a3a8 everytime i'm trying to show one image. Image When i delete bmp.recycle() everything goes well but i dont use this image in my code so i dont understand where…
s0nicYouth
  • 470
  • 3
  • 15
1
vote
1 answer

ListView or recycle views myself?

I have an app which loads a boatload of images and displays them in a TableLayout which is inside a ScrollView. At run time I get the width of the layout parent and use that to determine how many images can go in each TableRow (all of the images are…
AC Arcana
  • 366
  • 2
  • 10
1
vote
3 answers

Cannot recycle a Sitecore CMS Item from a Windows Service

I am using a Windows Service which does cleanup jobs on Sitecore Items (inactive or old products) and when I am trying to delete them I cannot. if (qItem != null) { qItem.Recycle(); } Relevat StackTrace is: Message: Object reference not set to an…
Vasile Tomoiaga
  • 1,727
  • 3
  • 16
  • 19
1
vote
2 answers

WCF service is unavailable after app pool recycles

I'm working on a website that consumes a WCF service hosted in a different app pool, and every time the WCF service's app pool recycles I get a 503 when I'm using the website: [WebException: The remote server returned an error: (503) Server…
user837324