From 635adbd089fe69c8459e174a054edbad50891890 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 25 May 2016 13:49:06 +0200 Subject: * DLL error handling --- Program.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Program.cs') 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); -- cgit v1.2.3