Compiler Error C2703

illegal __leave statement

A __leave statement must be within a __try block.

The following is an example of this error:

void main ()
{
   __leave;   //error
   __try
   {
      __leave;   //OK
   }
   __finally {}
}