Ignore:
Timestamp:
12/06/04 14:28:05 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/callisto.cc

    r5557 r5564  
    44#include <TGClient.h>
    55#include <TApplication.h>
     6#include <TObjectTable.h>
    67
    78#include "MLog.h"
     
    5253    gLog << " Options:" << endl;
    5354    gLog.Usage();
    54     gLog << "   --debug-env               Debug setting resources from file" << endl << endl;
     55    gLog << "   --debug-env               Debug setting resources from file" << endl;
     56    gLog << "   --debug-mem               Debug memory usage" << endl << endl;
    5557    gLog << endl;
    5658    gLog << "   -q                        Quit when job is finished" << endl;
     
    116118    //const Bool_t  kPrintOnly  = arg.HasOnlyAndRemove("--print-only");
    117119    const Bool_t  kDebugEnv   = arg.HasOnlyAndRemove("--debug-env");
     120    const Bool_t  kDebugMem   = arg.HasOnlyAndRemove("--debug-mem");
    118121
    119122    const Bool_t  kQuit       = arg.HasOnlyAndRemove("-q");
     
    194197        return -1;
    195198    }
     199
     200    if (kDebugMem)
     201        TObject::SetObjectStat(kTRUE);
    196202
    197203    //
     
    454460
    455461    if (kBatch || kQuit)
    456     {
    457462        delete d;
    458         return 0;
    459     }
    460 
    461     // From now on each 'Close' means: Terminate the application
    462     d->SetBit(MStatusDisplay::kExitLoopOnClose);
    463 
    464     // Wait until the user decides to exit the application
    465     app.Run(kFALSE);
     463    else
     464    {
     465        // From now on each 'Close' means: Terminate the application
     466        d->SetBit(MStatusDisplay::kExitLoopOnClose);
     467
     468        // Wait until the user decides to exit the application
     469        app.Run(kFALSE);
     470    }
     471
     472    if (TObject::GetObjectStat())
     473    {
     474        TObject::SetObjectStat(kFALSE);
     475        gObjectTable->Print();
     476    }
     477
    466478    return 0;
    467479}
     480
Note: See TracChangeset for help on using the changeset viewer.