Changeset 242 for trunk/sources/HeuristicLab
- Timestamp:
- 05/13/08 20:24:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab/MainForm.cs
r241 r242 94 94 PluginManager.Manager.Action += new PluginManagerActionEventHandler(splashScreen.Manager_Action); 95 95 Thread t = new Thread(delegate() { 96 try { 97 PluginManager.Manager.Run(app); 98 } catch(Exception ex) { 99 ShowErrorMessageBox(ex); 100 } 96 bool stopped = false; 97 do { 98 try { 99 PluginManager.Manager.Run(app); 100 stopped = true; 101 } catch(Exception ex) { 102 stopped = false; 103 ThreadPool.QueueUserWorkItem(delegate(object exception) { ShowErrorMessageBox((Exception)exception); }, ex); 104 Thread.Sleep(5000); // sleep 5 seconds before autorestart 105 } 106 } while(!stopped && app.AutoRestart); 101 107 }); 102 108 t.SetApartmentState(ApartmentState.STA); // needed for the AdvancedOptimizationFrontent
Note: See TracChangeset
for help on using the changeset viewer.