Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    r952f38 rbf3817  
    5353 *
    5454 */
     55
     56// include config.h
     57#ifdef HAVE_CONFIG_H
     58#include <config.h>
     59#endif
    5560
    5661#include "Helpers/MemDebug.hpp"
     
    110115}
    111116
     117void dumpMemory(){
     118  ofstream ost("molecuilder.memdump");
     119  Memory::dumpMemory(ost);
     120}
     121
    112122int main(int argc, char **argv)
    113123{
    114124  // 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);
    116127  string line;
    117128  char **Arguments = NULL;
     
    127138  // need to init the history before any action is created
    128139  ActionHistory::init();
    129 
    130   // In the interactive mode, we can leave the user the choice in case of error
    131   ASSERT_DO(Assert::Ask);
    132140
    133141  // from this moment on, we need to be sure to deeinitialize in the correct order
     
    155163      UIFactory::makeUserInterface("CommandLine");
    156164    } else {
     165      // In the interactive mode, we can leave the user the choice in case of error
     166      ASSERT_DO(Assert::Ask);
    157167      #ifdef USE_GUI_QT
    158168        DoLog(0) && (Log() << Verbose(0) << "Setting UI to QT4." << endl);
Note: See TracChangeset for help on using the changeset viewer.