Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error C2393

Error Message

'symbol' : per-appdomain symbol cannot be allocated in segment 'segment'

The use of appdomain variables implies that you are compiling with /clr:pure or /clr:safe, and a safe or pure image cannot contain data segments.

See /clr (Common Language Runtime Compilation) for more information.

Example

The following sample generates C2393.

// C2393.cpp
// compile with: /clr:pure /c
#pragma data_seg("myseg")
int n = 0;   // C2393
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.