none
InkOverlay.Enabled = false; takes exactly 60 seconds RRS feed

  • Question

  •  

    Group,

     

    I have a form with up to 5 InkOverlay controls on it. Intermittently, just setting enabled = false takes 60 seconds exaclty. The delay is exactly the same every time the delay happens, I just haven't been able to figure out what is causing the delay and it is really hurting our application. Its only on the first InkOverlay on the form. This only happens with windows XP (never reproducable on Vista).


    Each InkOverlay is on a user control and is initialized like this:

     

    private void InitOverlay() {

    // Initialize a Ink Overlay

    oInk = new Microsoft.Ink.InkOverlay(this.panelControl1);

    oInk.AttachMode = InkOverlayAttachMode.InFront;

    oInk.EditingMode = InkOverlayEditingMode.Ink;

    oInk.DefaultDrawingAttributes.Width = 35;

    this.oInk.CursorInRange += new InkCollectorCursorInRangeEventHandler(oInk_CursorInRange);

    this.oInk.Stroke += new InkCollectorStrokeEventHandler(InkCollectorStrokeEvent);

    this.oInk.CursorOutOfRange += new InkCollectorCursorOutOfRangeEventHandler(oInk_CursorOutOfRange);

    oInk.EraserMode = InkOverlayEraserMode.PointErase;

    oInk.Enabled = true;

    Point pt = new Point(10, 10);

    using (Graphics g = CreateGraphics()) {

    oInk.Renderer.PixelToInkSpace(g, ref pt);

    m_PixelsToInkSpaceRatioX = pt.X / 10;

    m_PixelsToInkSpaceRatioY = pt.Y / 10;

    }

    }

     

     

    Then, code to load the data in looks like this:

     

    internal void SetPadNotes(string audit, byte[] section) {

    {

    oInk.Enabled = false; // <-- hangs right for 60 seconds.

    oInk.Ink.Load(section);

    :

    :
    :

    }

     

    It is one thing to be hanging, but the exactly 60 seconds everytime has me boggled...Does anyone have any idea what could be happening with this???

     

    Considering to open a ticket with Microsoft....


    Thanks.

     

     

    Thursday, November 27, 2008 4:06 AM

Answers

  • Hello rdbigdog.

     

    This is a little odd. 60 seconds, exactly? One question: Are you running this on a computer running a Tablet PC OS, or is this a Windows XP computer set up as a Tablet PC developer environment?

     

    Thanks.

     

    Eliot - MSFT

    • Marked as answer by rd_bigdog Friday, December 18, 2009 3:29 PM
    Thursday, December 4, 2008 1:18 AM

All replies

  • Hello rdbigdog.

     

    This is a little odd. 60 seconds, exactly? One question: Are you running this on a computer running a Tablet PC OS, or is this a Windows XP computer set up as a Tablet PC developer environment?

     

    Thanks.

     

    Eliot - MSFT

    • Marked as answer by rd_bigdog Friday, December 18, 2009 3:29 PM
    Thursday, December 4, 2008 1:18 AM
  •  

    Hi,

     

    The OS is windows XP Tablet PC Edition 2005 SP2. The Tablets are from Motion Computing.

     

    It is exactly 60 seconds every time!

     

     

     

    Monday, December 8, 2008 2:05 PM
  • Hi.

     

    Is wisptis.exe running before your app starts? We found that if the shell needs to start wisptis there can be delays in 30 second increments; however, if this is a Tablet PC, then wisptis should already be running.

     

    Eliot

     

     

    Tuesday, December 9, 2008 5:56 PM