Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8153647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:05:23+00:00 2026-06-06T16:05:23+00:00

I am using the sample provided here and have used the code inside a

  • 0

I am using the sample provided here and have used the code inside a regular UITableView:
http://tirania.org/monomac//archive/2012/Jan.html

I thought all was good until I added lots of messages. Then I see it crashes (seems like a cell reuse problem) when the messages are too many for the screen.

My main problem is that the stacktrace says almost nothing so anyone used this code in a regular UITableView and would like to share some code?

Here is my GetCell method and stacktrace below:

public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
    {
        ChatMessage msg = _items[indexPath.Row];
        bool isLeft = msg.User.UserId != _controller._gamebackend.GetLocalUser().UserId;
        var cell = tableView.DequeueReusableCell (isLeft ? BubbleCell.KeyLeft : BubbleCell.KeyRight) as BubbleCell;
        if (cell == null)
            cell = new BubbleCell (isLeft);

        cell.Update (GetBubbleText(msg));
        cell.SelectionStyle = UITableViewCellSelectionStyle.None;   
        return cell;
    }

2   libsystem_c.dylib                   0x31f247ed _sigtramp + 48
Jun 24 00:27:53 unknown     3   Foundation                          0x3716a137 probeGC + 62
Jun 24 00:27:53 unknown     4   Foundation                          0x3718983b -[NSConcreteMapTable removeObjectForKey:] + 34
Jun 24 00:27:53 unknown     5   UIKit                               0x353e13a1 -[_UIImageViewPretiledImageWrapper dealloc] + 80
Jun 24 00:27:53 unknown     6   libobjc.A.dylib                     0x34abe175 _objc_rootRelease + 36
Jun 24 00:27:53 unknown     7   libobjc.A.dylib                     0x34abfe57 objc_release + 38
Jun 24 00:27:53 unknown     8   libobjc.A.dylib                     0x34abeead _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 224
Jun 24 00:27:53 unknown     9   libobjc.A.dylib                     0x34abedc9 _objc_autoreleasePoolPop + 12
Jun 24 00:27:53 unknown     10  CoreFoundation                      0x32a6dcff _CFAutoreleasePoolPop + 18
Jun 24 00:27:53 unknown     11  QuartzCore                          0x31fba91d _ZN2CA7Display11DisplayLink8dispatchEyy + 340
Jun 24 00:27:53 unknown     12  QuartzCore                          0x31fba7c5 _ZN2CA7Display16IOMFBDisplayLink8callbackEP21__IOMobileFramebufferyyyPv + 60
Jun 24 00:27:53 unknown     13  IOMobileFramebuffer                 0x32ba8001 IOMobileFramebufferVsyncNotifyFunc + 156
Jun 24 00:27:53 unknown     14  IOKit                               0x34e3d60d IODispatchCalloutFromCFMessage + 188
Jun 24 00:27:53 unknown     15  CoreFoundation                      0x32ae6f13 __CFMachPortPerform + 362
Jun 24 00:27:53 unknown     16  CoreFoundation                      0x32af1523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
Jun 24 00:27:53 unknown     17  CoreFoundation                      0x32af14c5 __CFRunLoopDoSource1 + 140
Jun 24 00:27:53 unknown     18  CoreFoundation                      0x32af0313 __CFRunLoopRun + 1370
Jun 24 00:27:53 unknown     19  CoreFoundation                      0x32a734a5 CFRunLoopRunSpecific + 300
Jun 24 00:27:53 unknown     20  CoreFoundation                      0x32a7336d CFRunLoopRunInMode + 104
Jun 24 00:27:53 unknown     21  GraphicsServices                    0x32bc0439 GSEventRunModal + 136
Jun 24 00:27:53 unknown     22  UIKit                               0x35052cd5 UIApplicationMain + 1080
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T16:05:24+00:00Added an answer on June 6, 2026 at 4:05 pm

    There is another workaround: store all the cells you create in a class-level list.

    This should however not happen with types derived from UITableViewCells, so can you also file a bug at http://bugzilla.xamarin.com so that this can hopefully be prevented in the future?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning MVVM using sample created by Josh Smith at http://msdn.microsoft.com/en-us/magazine/dd419663.aspx I wanted
Using this sample : I have make my own Fragment that holds tabhost and
So I have this SDK provided by a third party which is used for
I am trying to create a heterogeneous tree based on a sample provided here:
I have a sample I'm building, that's using the Northwind database. I have a
I'm using the sample provider and relying party applications that come in the DotNetOpenAuth
i am using facebook android sdk provided for facebook i m using their examples-simple
I'm making a simple drawing app on Android. I'm using the FingerPaint.java provided with
I am currently developing my program using sample BluetoothChat program on android device. This
I am creating one sample project in android. i am using sample rss feed.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.