On latest  MonoTouch this isn't needed anymore

using (NSAutoreleasePool threadPool = new NSAutoreleasePool ())


See http://spouliot.wordpress.com/2011/12/01/threading-and-pooling/

Cheers

Alex


El 22/02/2012, a las 10:05 p.m., cbailey <[email protected]> escribió:

I made one import omission. From MT documentation

/If you create your own threads using System.Threading you do have to
provide you own NSAutoRelease pool to prevent the data from leaking. To do
this, simply wrap your thread in the following piece of code:/

DoWork needs to be wrapped in the following

using (NSAutoreleasePool threadPool = new NSAutoreleasePool ())
{
}



--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Threading-best-practice-tp4411605p4412761.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to