aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/mainfrm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/windoze/CBuilder5/BibleCS/mainfrm.cpp')
-rw-r--r--apps/windoze/CBuilder5/BibleCS/mainfrm.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/windoze/CBuilder5/BibleCS/mainfrm.cpp b/apps/windoze/CBuilder5/BibleCS/mainfrm.cpp
index bc54534..e4eab26 100644
--- a/apps/windoze/CBuilder5/BibleCS/mainfrm.cpp
+++ b/apps/windoze/CBuilder5/BibleCS/mainfrm.cpp
@@ -964,8 +964,15 @@ void __fastcall TForm1::FormShow(TObject *Sender)
DefaultStrKey->Persist(1);
*DefaultStrKey = "";
- mainmgr = new BibleCSMGR(ModInstFrm);
+ try {
+ mainmgr = new BibleCSMGR(ModInstFrm);
+ }
+ catch (...) {
+ Application->Terminate();
+ }
+ if (!mainmgr->config)
+ Application->Terminate();
// Load devotion and show form
for (it = mainmgr->Modules.begin(); it != mainmgr->Modules.end(); it++) {