diff options
author | emkael <emkael@tlen.pl> | 2016-05-25 13:49:06 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-25 13:49:06 +0200 |
commit | 635adbd089fe69c8459e174a054edbad50891890 (patch) | |
tree | 7a31644fb09eaa098e7151eaaa65bafa269d2cd7 | |
parent | fbb829e5b0fe39f21cf1e0d9023db075bb439285 (diff) |
* DLL error handling
-rw-r--r-- | Program.cs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -75,6 +75,10 @@ namespace BCDD Console.WriteLine("ERROR: unable to determine DD table for board " + boardNo);
}
}
+ catch (DllNotFoundException)
+ {
+ throw;
+ }
catch (Exception e)
{
Console.WriteLine(e.Message);
@@ -82,6 +86,11 @@ namespace BCDD }
file.Save();
}
+ catch (DllNotFoundException)
+ {
+ Console.WriteLine("libbcalcdds.dll could not be loaded - make sure it's present in application directory!");
+ break;
+ }
catch (Exception e)
{
Console.WriteLine("ERROR: " + e.Message);
|