equal
deleted
inserted
replaced
26 |
26 |
27 //SL: Empty on FCL ? |
27 //SL: Empty on FCL ? |
28 //For now we use this for basic testing on our SYMC implementation |
28 //For now we use this for basic testing on our SYMC implementation |
29 |
29 |
30 |
30 |
|
31 |
31 class CBaseTest: public CBase |
32 class CBaseTest: public CBase |
32 { |
33 { |
33 |
34 |
34 }; |
35 }; |
35 |
36 |
36 |
37 |
37 GLDEF_C void MainL() |
38 GLDEF_C void MainL() |
38 { |
39 { |
39 |
|
40 CBase* other=new(ELeave) CBase(); |
40 CBase* other=new(ELeave) CBase(); |
41 CleanupStack::PushL(other); |
41 CleanupStack::PushL(other); |
42 CBase* base=new(ELeave) CBase(); |
42 CBase* base=new(ELeave) CBase(); |
43 CleanupStack::PushL(base); |
43 CleanupStack::PushL(base); |
44 CleanupStack::PopAndDestroy(2,other); |
44 CleanupStack::PopAndDestroy(2,other); |
68 |
68 |
69 |
69 |
70 GLDEF_C TInt E32Main() |
70 GLDEF_C TInt E32Main() |
71 { |
71 { |
72 //What do we do then |
72 //What do we do then |
|
73 //SetReturnedHandle |
73 |
74 |
74 __UHEAP_MARK; |
75 __UHEAP_MARK; |
75 |
76 |
76 //CBase* base=new(ELeave) CBase(); |
77 //CBase* base=new(ELeave) CBase(); |
77 CBase* base=new CBase(); |
78 CBase* base=new CBase(); |
93 if (!cleanupStack) |
94 if (!cleanupStack) |
94 { |
95 { |
95 return KErrNoMemory; |
96 return KErrNoMemory; |
96 } |
97 } |
97 |
98 |
|
99 CActiveScheduler* activeScheduler = new CActiveScheduler; |
|
100 if (!activeScheduler) |
|
101 { |
|
102 return KErrNoMemory; |
|
103 } |
|
104 CActiveScheduler::Install(activeScheduler); |
|
105 |
98 TInt err=KErrNone; |
106 TInt err=KErrNone; |
99 TRAP(err,MainL()); |
107 TRAP(err,MainL()); |
100 |
108 |
|
109 delete activeScheduler; |
101 delete cleanupStack; |
110 delete cleanupStack; |
102 |
111 |
103 __UHEAP_MARKEND; |
112 __UHEAP_MARKEND; |
104 |
113 |
105 return err; |
114 return err; |