Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 789 Bytes

compiler-error-c2388.md

File metadata and controls

24 lines (19 loc) · 789 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2388
Compiler Error C2388
11/04/2016
C2388
C2388
764ad2d7-cb04-425f-ba30-70989488c4a4

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