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 C2541

'delete' : delete : cannot delete objects that are not pointers

The delete operator was used on an object that is not a pointer.

Example

void main()
{
   int i;
   delete i;            // error, i is not a pointer
   intip = new int;
   delete ip;           // OK
}