[commit] r1164 - trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Wed Feb 9 14:36:34 CST 2011
Author: ksmyth
Date: Wed Feb 9 14:36:34 2011
New Revision: 1164
Log:
Dont count on static variables retaining their value. CoFreeUnusedLibraries may unload the dll
Modified:
trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs
Modified: trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs
==============================================================================
--- trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs Wed Feb 9 14:34:26 2011 (r1163)
+++ trunk/SDK/DotNet/CSharpComponentWizard/Templates/CSharpInterpreter/MyInterpreter.cs Wed Feb 9 14:36:34 2011 (r1164)
@@ -12,9 +12,7 @@
namespace GME.CSharp.MyInterpreter
{
/// <summary>
- /// This class implements the necessary COM interfaces for a GME interpreter component. Nonstatic variables in this class
- /// are initialized with each invocation, static members are not, and they preserve their value across calls from the same GME process.
- /// This is true for all classes in your component.
+ /// This class implements the necessary COM interfaces for a GME interpreter component.
/// </summary>
[Guid(ComponentConfig.guid),
ProgId(ComponentConfig.progID),
@@ -40,8 +38,6 @@
/// <summary>
/// This function is called for each interpreter invocation before Main.
/// Don't perform MGA operations here unless you open a tansaction.
- /// Typically, you initialize your static variables here:
- /// constructors/initializations for static classes and fields are executed once at loading time, not for every interpreter invocation.
/// </summary>
/// <param name="project">The handle of the project opened in GME, for which the interpreter was called.</param>
public void Initialize(MgaProject project)
More information about the gme-commit
mailing list