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

  • SEARCH
  • Home
  • 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 9219431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:06:56+00:00 2026-06-18T03:06:56+00:00

I am profiling my app on an iPhone. I am creating a LOT of

  • 0

I am profiling my app on an iPhone. I am creating a LOT of UIWebView and sticking them in a MonoTouch.Dialog Table (lets say 1000). I have a button that clears out the table section and disposes the webviews and any reference to any of the WebViews.

I notice with Mono Profile, that the instances of UIWebview goes down to zero (as it should). However, if I do the same test using Instruments (Allocations), it shows that the number of “live” Webviews never decreases and the memory never recovers. I even tried a GC.Collect and it made no difference.

I also see that Mono profile says that total ram being used is aroun 1.5 meg, when in Instruments shows around 5meg.

The first item concerns me more since it appears that I am unable to recover that memory and destroy all those instances. Am I reading this wrong or is there some other issue? Thanks.

  • 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-18T03:06:58+00:00Added an answer on June 18, 2026 at 3:06 am

    If the number of UIWebView instances go down in the Mono profiler, but not in Instruments, it means native code is holding a reference to those instances, preventing them from getting released.

    I suggest you enable the “Record reference count” option in the Allocations instrument, and then investigate the retainCount when the UIWebView instances only show up in Instruments – you need to pair each retain call with a release call (but there will be at least one you can’t pair up, and that’s the one you’re looking for). At this point you need to figure out why that retain call doesn’t have a corresponding release call.

    Neither the Mono profile nor the Allocations instrument actually tell you the total amount of ram being used (and they measure different things which is why the number is different). The Mono profiler only measures managed objects, while the Allocations object measures most (but not all) native allocations in addition to the managed ones.

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

Sidebar

Related Questions

I am profiling an iPhone app and I noticed a strange pattern. In a
I have tried profiling my app, but found that TraceView isn't that user friendly,
Have uploaded an iPhone app to iTunes Connect, providing a 512x512 icon with square
I'm creating iPhone app for kids which they can play with alphabets and numbers.
I am creating an iPhone app in which I am providing a call feature
i am creating a app to screen capture from the iphone. So after i
I have tried Instruments and Shark to profile an iPhone app, but both use
I'm trying to write my first iPhone-App, which should be data-driven. Now I have
I have an app developed for iPhone OS 2.x. For the obvious reasons, the
I compiled my App for Debug/iPhone, opened Instruments for CPU Time profiling, attached it

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.