Monitor2 in SDF 2.3

Last post 01-22-2009 18:47 by gandalf69. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 01-22-2009 18:47

    Monitor2 in SDF 2.3

    Hello,

     

         I've used Monitor2 of SDF version 2.3 comm. editiion.

    Maybe I did something wrong but the lockCout attribute of Monitor2 is 3 and

    isLocked is true, (but I think it'd be false) after the following

    code:

                if (!monMain.TryEnter())
                {
                    tb.Text = "Monitor is locked";
                }
                else
                {
                    monMain.Enter();
                    bool isLocked= monMain.TryEnter();

                }

     

     Dev. env: c#, VS 2005, Windows Mobile 6.1 prof.

         Pls drop a note here if you can help me.


         Thx,

              /J.

     

    Filed under: , ,
Page 1 of 1 (1 items)