Re: stdout hanging on iOS 5.1
Re: stdout hanging on iOS 5.1
- Subject: Re: stdout hanging on iOS 5.1
- From: William Squires <email@hidden>
- Date: Sun, 18 Mar 2012 18:44:26 -0500
A recent email from xamarin to me ('cause i bought their MonoTouch thingy) recently notified me that a change in 5.1 means developers can no longer write to console. And some other blah, blah, blah...
On Mar 13, 2012, at 7:37 PM, Jonas Maebe wrote:
>
> On 13 Mar 2012, at 23:08, Jens Alfke wrote:
>
>> Through trial and error I’ve figured out that the problem has to do with writing to stdout (i.e. calling printf). I don’t do it myself, but some gnarly code I use (the Erlang runtime) does. As near as I can tell, on iOS 5.1 this is causing the thread to hang. The reason I know this is because if I call freopen to redirect stdout to a file (which I did in an attempt to capture any error messages that weren’t showing up in the console afterward), the problem goes away and the app launches.
>>
>> So is anyone aware of any problems using stdout in iOS apps?
>
> Yes, there's a long thread about it on our bug tracker (although there someone reports that a plain printf() or write() from a pure Objective-C app does work for him): http://bugs.freepascal.org/view.php?id=21440 (it also has a weird crash report attached, with a crash in an "unknown thread" due to writing to stdout)
>
> There's also this post from the MonoTouch guys, but I can't find the "iOS 5.1 guidelines" they refer to: http://blog.xamarin.com/2012/03/11/monotouch-and-ios-5-1/
>
> I'd also be very interested in knowing what the deal is...
>
>
> Jonas
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden