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.
Created attachment 482 [details]
Image for the bug
Steps to reproduce:
1. Extract provided "FileNotFound.zip".
2. Launch the MonoDevelop.
3. Open provided .sln file.
4. Build the application.
5. Run the application.
6. Enter file name into the text field.
7. Click on "Click Button".
8. See message which is under catch block is not appear on the MonoDevelop console.
In the created application we tried to open a file, file name is provided through the text filed in the iPhone simulator. If file exists in the "/Users/User/Projects/" location, application run successfully otherwise it throws Unhandled exception.
Please refer the attached sccenshot.
If file does not exist in the "/Users/User/Projects/" location, It should displayed the catch block's message in the MonoDevelop console.
OS: Snow Leopard 10.6
MonoDevelop 2.8 beta 2
Mono Framework for MAC OS X Intel Runtime
Created attachment 483 [details]
Created project package
This isn't actually a bug - what you want to do is put the try/catch inside of the delegate.
The reason your catch isn't getting hit is because setting the delegate isn't causing any exceptions.
This is working fine hence closing.