[MonoTouch] Strange issue iOS5.1 vs Environment.SpecialFolder.Personal

Karl Heinz Brehme Arredondo karl at e-magesolutions.com
Fri Mar 9 01:19:44 UTC 2012


Hi Sebastien,

I see now that I'm since this week with 5.2.5 versionŠ Well.. I think that
now it's just recompile and publish new version for usersŠ
I just didn't reproduce it again now, also with the application compiled
with previous to 5.2.

Thanks,

Karl

From:  Sebastien Pouliot <sebastien at xamarin.com>
Date:  Thu, 8 Mar 2012 20:10:04 -0500
To:  Karl Heinz Brehme Arredondo <karl at e-magesolutions.com>
Cc:  "monotouch at lists.ximian.com" <monotouch at lists.ximian.com>
Subject:  Re: [MonoTouch] Strange issue iOS5.1 vs
Environment.SpecialFolder.Personal

Hello Karl,

AFAIK this error is caused by a change in iOS 5.1 that does not allow
everyone to write to `stdout` (and return an access denied).

It should only occurs when using "Console.WriteLine" and was fixed in
MonoTouch 5.2.4 [1] (where the exception will be ignored, i.e. no
writing on `stdout`).

If you cannot update to 5.2.4 then you can try:

a) calling: Console.SetOut (new StreamWriter (Stream.Null));

b) add #if DEBUG ... #endif around the Console.WriteLine from your
application (so they won't reach your users)

Regards,
Sebastien

[1] http://docs.xamarin.com/MonoTouch_5.2#Changes_in_MonoTouch_5.2.4



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120308/abdc9242/attachment.html>


More information about the MonoTouch mailing list