bluetoothengine/btaudioman/src/basrvmain.cpp
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
    28 * Its a global definition, so GLDEF_C keyword can be omitted though.
    28 * Its a global definition, so GLDEF_C keyword can be omitted though.
    29 **/
    29 **/
    30 GLDEF_C TInt E32Main()
    30 GLDEF_C TInt E32Main()
    31     {
    31     {
    32     TRACE_STATIC_FUNC
    32     TRACE_STATIC_FUNC
    33     //TODO uncomment UHEAP macros after orbit & Qt memory leaks are resolved till then it should be commented.
    33 
    34 //    __UHEAP_MARK;
    34     __UHEAP_MARK;
    35     CTrapCleanup* cleanup=CTrapCleanup::New();
    35     CTrapCleanup* cleanup=CTrapCleanup::New();
    36     TInt r=KErrNoMemory;
    36     TInt r=KErrNoMemory;
    37     if (cleanup)
    37     if (cleanup)
    38         {
    38         {
    39         TRAP(r,RunServerL());
    39         TRAP(r,RunServerL());
    40         delete cleanup;
    40         delete cleanup;
    41         }
    41         }
    42     //
    42     //
    43 //    __UHEAP_MARKEND;
    43     __UHEAP_MARKEND;
    44     return r;
    44     return r;
    45     }
    45     }
    46 
    46 
    47 /**
    47 /**
    48 Create the active scheduler and server instances, and start the 
    48 Create the active scheduler and server instances, and start the