Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
We have a crash in a block of code that throws an exception in a try...catch where the catch should be catching the exception. This only happens in release builds on the device, not in debug or in the simulator.
The block of code looks like this:
string str = "Hello";
It also fails if I change the catch to "catch (Exception)".
I tried to make a simple test app that reproduces the issue, but couldn't get it to crash. Not sure why, but one guess is that the real app has some nested anonymous methods and BeginInvokes that I didn't try to reproduce in the test app.
Call stacks to follow in private posts...
And here's my version info:
Installation UUID: 1480f558-ce01-4cc9-8f58-058dda76f061
Mono 2.10.9 (tarball)
Package version: 210090011
Apple Developer Tools:
Xcode 4.4.1 (1488)
This appears to be fixed in the latest beta (Monotouch 5.3.5). Any chance the fix could be migrated to the stable branch?
MonoTouch 5.4 (stable) has been released, so I'm closing this for now.
If you can still reproduce this bug, please reopen it.