public static bool IsOpen()
        {
            bool is_open;
            int  err = HalconAPI.HWindowStackIsOpen(out is_open);

            if (err != 2)
            {
                throw new HalconException(err, "HDevWindowStack::IsOpen");
            }
            return(is_open);
        }