Example #1
0
 /// <summary>Loads a local procedure</summary>
 public void LoadProcedure(HDevProgram program, string procedureName)
 {
     if (program.Handle == IntPtr.Zero)
     {
         HDevEngineException.ThrowGeneric("Uninitialized program while creating a local procedure call");
     }
     HDevProcedure.HCkE(EngineAPI.LoadProcedure(this.procedure, program.Handle, procedureName));
     GC.KeepAlive((object)this);
     this.UpdateProcedureInfo();
 }
Example #2
0
 /// <summary>Loads a local procedure</summary>
 public void LoadProcedure(string programName, string procedureName)
 {
     HDevProcedure.HCkE(EngineAPI.LoadProcedure(this.procedure, programName, procedureName));
     GC.KeepAlive((object)this);
     this.UpdateProcedureInfo();
 }