[Mono-bugs] [Bug 685215] Odd SurfaceView Touch Exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Aug 10 05:23:58 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=685215

https://bugzilla.novell.com/show_bug.cgi?id=685215#c11


--- Comment #11 from Ramon Chan <chan.ramon at gmail.com> 2011-08-10 09:23:56 UTC ---
Look likes your test really generates a lot of rubbish for every frame.

You will need to do this :

UpdateCount++;
if (UpdateCount == 50)
{
   m_view.SetOnTouchListener(null);
   GC.Collect(0);
   m_view.SetOnTouchListener(m_view);
   UpdateCount = 0;
}



The garbage collector is vulnerable to accept any hardware input (touch, sensor
etc). Before this can be fixed by Mono team, we will have to turn them off
before garbage collector starts collecting and turn them back on again after.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list