NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C3824

'pointer' : only non-static non-interior local pointers may be declared as pinned

Local pointers declared with the __pin keyword cannot be declared static and cannot be interior pointers.

The following sample generates C3824:

#using <mscorlib.dll>

__gc struct A {
};

void func() {
   static A __pin* a;   // C3824, remove 'static' to resolve
}

void main() {
}