|
1 // Copyright (c) 2008-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 #ifndef ECOMPANICS_H |
|
17 #define ECOMPANICS_H |
|
18 |
|
19 /** |
|
20 The following enumaration defines the ECOM panic codes used in the ecom.dll and |
|
21 ecomserver.exe binaries. They are provided for debug purposes only to help |
|
22 diagnose problems. |
|
23 Server panics have the category - "ECOMServer" and client DLL panics have the |
|
24 category - "ECOMClientDLL". ECOM will log a message to RDebug::Print prior to |
|
25 panics to give further information. |
|
26 @internalComponent |
|
27 */ |
|
28 enum TEComPanic |
|
29 { |
|
30 EEComPanicUndefined = 0, |
|
31 |
|
32 //------------------------------------------------------------------------ |
|
33 |
|
34 EEComPanicClientDllBase = -16900, |
|
35 |
|
36 /** ECOM API used before when there is no open session to ECOM Server. |
|
37 Raised on: UREL & UDEB builds */ |
|
38 EEComPanic_LibraryNotInitialised = -16900, |
|
39 |
|
40 /** Plug-in implementation claims to support an extended object that |
|
41 requires allocation/deallocation but supplies no release function. |
|
42 Raised on: UDEB builds */ |
|
43 EEComPanic_CInstanceInfoExtended_CreateExtObjectL_NoReleaseFunc = -16901, |
|
44 |
|
45 /** Plug-in implementation claims to support an extended object that |
|
46 requires allocation/deallocation but failed to supply a release object. |
|
47 Raised on: UDEB builds */ |
|
48 EEComPanic_CInstanceInfoExtended_CreateExtObjectL_NoReleaseObj = -16902, |
|
49 |
|
50 /** Plug-in implementation claims to support an extended object that |
|
51 requires allocation/deallocation but failed to supply a release object. |
|
52 Raised on: UDEB builds */ |
|
53 EEComPanic_CInstanceInfoExtended_DestroyExtObject_NoReleaseObj = -16903, |
|
54 |
|
55 /** Client supplied an implementation instance key which is not known to |
|
56 the ECOM API i.e. it was not returned from a previous call. |
|
57 Raised on: UDEB builds */ |
|
58 EEComPanic_InvalidImplementationInstanceKey = -16904, |
|
59 |
|
60 EEComPanicClientDllEnd = -16949, |
|
61 |
|
62 //------------------------------------------------------------------------ |
|
63 |
|
64 EEComPanicServerBase = -16950, |
|
65 |
|
66 /** Fatal leave occurred in the CServerStartupMgr class during startup |
|
67 Raised on: UREL & UDEB builds */ |
|
68 EEComPanic_CServerStartupMgr_RunError = -16950, |
|
69 |
|
70 /** Fatal leave occurred in the CServerStartupMgr class during |
|
71 plug-in (re)scanning and registration. e.g. Out of memory |
|
72 Raised on: UREL & UDEB builds */ |
|
73 EEComPanic_CDiscoverer_CIdleScanningTimer_RunError = -16951, |
|
74 |
|
75 /** Fatal leave occurred in the CIdleScanningTimer class during |
|
76 plug-in (re)scanning and registration. e.g. Out of memory |
|
77 Raised on: UREL & UDEB builds */ |
|
78 EEComPanic_CDiscoverer_CDirChangeNotifier_RunError = -16952, |
|
79 |
|
80 /** Input stream used to construct CImplementationInformation has |
|
81 duplicate extended interfaces UIDs. |
|
82 Raised on: UDEB builds */ |
|
83 EEComPanic_CImlpementationInfromation_DuplicateExIf = -16953, |
|
84 |
|
85 /** Plug-in resource file contains duplciate extended interface UIDs. |
|
86 Raised on: UDEB builds */ |
|
87 EEComPanic_CParseImplementationDataFormatVersion3_DuplicateExIf = -16954, |
|
88 |
|
89 /** Server invariant test. CDllData object previously found in the registry |
|
90 was found to be missing during an update operation following a re-scan. |
|
91 Raised on: UDEB builds */ |
|
92 EEComPanic_CRegistryData_UpdateDllDataL_DllRegistrationMissing = -16955, |
|
93 |
|
94 EEComPanicServerEnd = -16999 |
|
95 |
|
96 //------------------------------------------------------------------------ |
|
97 }; |
|
98 |
|
99 // ____________________________________________________________________________ |
|
100 // FUNCTIONS |
|
101 |
|
102 /** |
|
103 Function for clean up RExtendedInterfaceArray when leave occurs |
|
104 @internalComponent |
|
105 */ |
|
106 extern void CloseAndDeleteArray(TAny* aPtr); |
|
107 |
|
108 |
|
109 |
|
110 #endif // ECOMPANICS_H |