summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-25 13:49:06 +0200
committeremkael <emkael@tlen.pl>2016-05-25 13:49:06 +0200
commit635adbd089fe69c8459e174a054edbad50891890 (patch)
tree7a31644fb09eaa098e7151eaaa65bafa269d2cd7
parentfbb829e5b0fe39f21cf1e0d9023db075bb439285 (diff)
* DLL error handling
-rw-r--r--Program.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
index 44c8682..2e793c4 100644
--- a/Program.cs
+++ b/Program.cs
@@ -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);