Compiler Error C2388
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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
© 2015 Microsoft