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 C3148

illegal __nogc pointer to managed type 'type'

A pointer to a managed type cannot be declared with the __nogc keyword.

The following sample generates C3148:

#using<mscorlib.dll>
__gc  class G {
};

void main() {
   G __nogc *pg;   // C3148
   // try ..
   // G *pg;
   // or
   // G __gc *pg;
}