Share via


IVsaEngine.SaveCompiledState Method

Saves the compiled state of the script engine; optionally, it also saves debugging information.

void SaveCompiledState( 
   unsigned char** pe __gc[],
   unsigned char** pdb __gc[]
);
public: void SaveCompiledState( 
   out byte[]  pe,
   out byte[]  pdb
);
MustOverride Public Sub SaveCompiledState( _ 
   ByVal pe() As Byte _
) As Byte

Parameters

  • pe
    The compiled state of the script engine.

  • pdb
    Specifies debugging information contained in the .PDB file corresponding to the PE (portable executable).

Remarks

The host calls the SaveCompiledState method with the two reference parameters. The script engine sets the values of the pe with the compiled code and, optionally, the pdb with the debugging information, if available. The host saves the compiled state to a specific location for subsequent retrieval.

The following table shows the exceptions that the SaveCompiledState method can throw.

Exception Type

Condition

EngineClosed

The IVsaEngine.Close method has been called and the engine is closed.

EngineBusy

The engine is currently executing code for another thread.

EngineRunning

The engine is already running.

EngineNotCompiled

There is no compiled state to save.

EngineNotInitialized

The engine has not been initialized.

SaveCompiledStateFailed

The operation failed.

See Also

Reference

IVsaEngine Interface