Bug 1019 - MonoDevelop is unable to handle "File Not Found" exception.
Summary: MonoDevelop is unable to handle "File Not Found" exception.
Status: CLOSED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8 Beta 2
Hardware: Macintosh Mac OS
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-09-23 13:15 UTC by Atin
Modified: 2011-10-10 12:06 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Image for the bug (603.12 KB, image/jpeg)
2011-09-23 13:15 UTC, Atin
Details
Created project package (1.47 MB, application/x-zip-compressed)
2011-09-23 13:16 UTC, Atin
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
CLOSED FIXED

Description Atin 2011-09-23 13:15:36 UTC
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.

Actual result:
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.

Expected result:
If file does not exist in the "/Users/User/Projects/" location, It should displayed the catch block's message in the MonoDevelop console.

Environment Details:
OS:  Snow Leopard 10.6
MonoTouch 4.9
MonoDevelop 2.8 beta 2
Mono Framework for MAC OS X Intel Runtime
Xcode 4
Comment 1 Atin 2011-09-23 13:16:48 UTC
Created attachment 483 [details]
Created project package
Comment 2 Jeffrey Stedfast 2011-09-28 13:59:19 UTC
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.
Comment 3 Saurabh 2011-10-10 10:19:06 UTC
This is working fine hence closing.