First public contribution.
1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32\etshell\ts_main.cpp
20 GLDEF_C void Panic(TShellPanic anErrorCode)
22 // Report a fault in the shell.
26 User::Panic(_L("SHELL"),anErrorCode);
35 CTrapCleanup* trapHandler=CTrapCleanup::New();
36 if (trapHandler==NULL)
40 TRAP(r,ShellFunction::TheShell=CShell::NewL());
47 TRAP(r,ShellFunction::TheShell->RunL());
50 delete ShellFunction::TheShell;
56 delete ShellFunction::TheShell;