Example #1
0
        public static IntPtr PreCall(int procIndex)
        {
            IntPtr proc      = new IntPtr();
            int    procedure = HalconAPI.CreateProcedure(procIndex, out proc);

            if (procedure != 2)
            {
                HOperatorException.throwInfo(procedure, "Could not create a new operator instance for id " + (object)procIndex);
            }
            return(proc);
        }