equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 "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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file main.cpp |
|
18 @internalTechnology |
|
19 */ |
|
20 #include <e32base.h> |
|
21 |
|
22 #include "tlstest2server.h" |
|
23 |
|
24 void MainL() |
|
25 { |
|
26 CActiveScheduler* sched=NULL; |
|
27 sched=new(ELeave) CActiveScheduler; |
|
28 CleanupStack::PushL(sched); |
|
29 CActiveScheduler::Install(sched); |
|
30 |
|
31 CTlsTest2Server::NewLC(); |
|
32 RProcess::Rendezvous(KErrNone); |
|
33 sched->Start(); |
|
34 |
|
35 CleanupStack::PopAndDestroy(2, sched); // server |
|
36 } |
|
37 |
|
38 |
|
39 TInt E32Main() |
|
40 { |
|
41 __UHEAP_MARK; |
|
42 CTrapCleanup* cleanup = CTrapCleanup::New(); |
|
43 if(cleanup == NULL) |
|
44 { |
|
45 return KErrNoMemory; |
|
46 } |
|
47 TRAPD(err, MainL()); |
|
48 delete cleanup; |
|
49 __UHEAP_MARKEND; |
|
50 return err; |
|
51 } |