Changes in src/builder.cpp [952f38:bf3817]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/builder.cpp
r952f38 rbf3817 53 53 * 54 54 */ 55 56 // include config.h 57 #ifdef HAVE_CONFIG_H 58 #include <config.h> 59 #endif 55 60 56 61 #include "Helpers/MemDebug.hpp" … … 110 115 } 111 116 117 void dumpMemory(){ 118 ofstream ost("molecuilder.memdump"); 119 Memory::dumpMemory(ost); 120 } 121 112 122 int main(int argc, char **argv) 113 123 { 114 124 // while we are non interactive, we want to abort from asserts 115 //ASSERT_DO(Assert::Abort); 125 ASSERT_DO(Assert::Abort); 126 ASSERT_HOOK(dumpMemory); 116 127 string line; 117 128 char **Arguments = NULL; … … 127 138 // need to init the history before any action is created 128 139 ActionHistory::init(); 129 130 // In the interactive mode, we can leave the user the choice in case of error131 ASSERT_DO(Assert::Ask);132 140 133 141 // from this moment on, we need to be sure to deeinitialize in the correct order … … 155 163 UIFactory::makeUserInterface("CommandLine"); 156 164 } else { 165 // In the interactive mode, we can leave the user the choice in case of error 166 ASSERT_DO(Assert::Ask); 157 167 #ifdef USE_GUI_QT 158 168 DoLog(0) && (Log() << Verbose(0) << "Setting UI to QT4." << endl);
Note:
See TracChangeset
for help on using the changeset viewer.