Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    rb9c847 r097902  
    6060#include "config.hpp"
    6161#include "log.hpp"
    62 #include "memoryusageobserver.hpp"
    6362#include "molecule.hpp"
    6463#include "periodentafel.hpp"
     
    111110}
    112111
     112void dumpMemory(){
     113  ofstream ost("molecuilder.memdump");
     114  Memory::dumpMemory(ost);
     115}
     116
    113117int main(int argc, char **argv)
    114118{
    115119  // while we are non interactive, we want to abort from asserts
    116   //ASSERT_DO(Assert::Abort);
     120  ASSERT_DO(Assert::Abort);
     121  ASSERT_HOOK(dumpMemory);
    117122  string line;
    118123  char **Arguments = NULL;
     
    128133  // need to init the history before any action is created
    129134  ActionHistory::init();
    130 
    131   // In the interactive mode, we can leave the user the choice in case of error
    132   ASSERT_DO(Assert::Ask);
    133135
    134136  // from this moment on, we need to be sure to deeinitialize in the correct order
     
    156158      UIFactory::makeUserInterface("CommandLine");
    157159    } else {
     160      // In the interactive mode, we can leave the user the choice in case of error
     161      ASSERT_DO(Assert::Ask);
    158162      #ifdef USE_GUI_QT
    159163        DoLog(0) && (Log() << Verbose(0) << "Setting UI to QT4." << endl);
Note: See TracChangeset for help on using the changeset viewer.