equal
deleted
inserted
replaced
50 TBool nga = EFalse; |
50 TBool nga = EFalse; |
51 UserSvr::HalFunction(EHalGroupEmulator, EEmulatorHalBoolProperty, (TAny*)"symbian_graphics_use_gce", &nga); |
51 UserSvr::HalFunction(EHalGroupEmulator, EEmulatorHalBoolProperty, (TAny*)"symbian_graphics_use_gce", &nga); |
52 |
52 |
53 // try to launch it |
53 // try to launch it |
54 const TPtrC exeName = nga ? KWservSwitchNga() : KWservSwitchNonNga(); |
54 const TPtrC exeName = nga ? KWservSwitchNga() : KWservSwitchNonNga(); |
|
55 |
|
56 #ifdef _DEBUG |
55 RDebug::Print(_L("%S: Starting \"%S\" \"%S\""), &KProcessName, &exeName, &argPtr); |
57 RDebug::Print(_L("%S: Starting \"%S\" \"%S\""), &KProcessName, &exeName, &argPtr); |
|
58 #endif |
|
59 |
56 RProcess server; |
60 RProcess server; |
57 TInt err = server.Create(exeName, argPtr, EOwnerThread); |
61 TInt err = server.Create(exeName, argPtr, EOwnerThread); |
58 delete arg; |
62 delete arg; |
59 arg = NULL; |
63 arg = NULL; |
60 if (err) |
64 if (err) |
61 { |
65 { |
62 return err; |
66 return err; |
63 } |
67 } |
64 |
68 |
65 // wait for server to start |
69 // wait for server to start |
|
70 #ifdef _DEBUG |
66 RDebug::Print(_L("%S: waiting on process ..."), &KProcessName); |
71 RDebug::Print(_L("%S: waiting on process ..."), &KProcessName); |
|
72 #endif |
67 TRequestStatus stat; |
73 TRequestStatus stat; |
68 server.Rendezvous(stat); |
74 server.Rendezvous(stat); |
69 |
75 |
70 if (stat!=KRequestPending) |
76 if (stat!=KRequestPending) |
71 { // abort startup |
77 { // abort startup |
85 { |
91 { |
86 TInt error = ChainWservSwitch(); |
92 TInt error = ChainWservSwitch(); |
87 // propagate error to SysStart |
93 // propagate error to SysStart |
88 if (error) |
94 if (error) |
89 { |
95 { |
|
96 #ifdef _DEBUG |
90 RDebug::Print(_L("%S: Failed with error %i"), &KProcessName, error); |
97 RDebug::Print(_L("%S: Failed with error %i"), &KProcessName, error); |
|
98 #endif |
91 } |
99 } |
92 RProcess::Rendezvous(error); |
100 RProcess::Rendezvous(error); |
93 return error; |
101 return error; |
94 } |
102 } |
95 |
103 |