Edit

Share via


Compiler Error C2388

'symbol' : a symbol cannot be declared with both __declspec(appdomain) and __declspec(process)

The appdomain and process __declspec modifiers cannot be used on the same symbol. The storage for a variable exists per process or per application domain.

For more information, see appdomain and process.

The following sample generates C2388:

// C2388.cpp
// compile with: /clr /c
__declspec(process) __declspec(appdomain) int i;   // C2388
__declspec(appdomain) int i;   // OK