WaitCommEvent locks the process calling Application.Exit()

Last post 10-08-2008 5:00 by francesco.pezzato. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-06-2008 11:48

    WaitCommEvent locks the process calling Application.Exit()

    Hello everyone, I've seen that there are some posts talking about the WaitCommEvent(..), but I have a few different issue;

    Using the OpenNETCF.IO.Serial on two devices with integrated  GPS antenna, everything works fine but, exiting my application, the program locks on the WaitCommEvent handler:

    override internal bool WaitCommEvent(IntPtr hPort, ref CommEventFlags flags)

    {

          return Convert.ToBoolean(CEWaitCommEvent(hPort, ref flags, IntPtr.Zero));

    }

    and the application can't exit correctly,even calling the stop() method of the GPS class instance.

    Here(http://img84.imageshack.us/img84/7267/waitcommeventlj8.png) you can find the screenshot of VisualStudio in debug mode;

    Do you have any suggestions?

    Thanks a lot

     

    Francesco

  • 10-08-2008 5:00 In reply to

    Re: WaitCommEvent locks the process calling Application.Exit()

    Hello, I've tried the hack posted by Tom Kuhn in this post: http://community.opennetcf.com/forums/t/2226.aspx?PageIndex=1 and it works for me :) Thanks a lot! Francesco
Page 1 of 1 (2 items)