MSCOMM Sometimes Freeze

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • YST
    New Member
    • Mar 2008
    • 1

    MSCOMM Sometimes Freeze

    VB.NET2002 WindowsXP
    I use MSCOMM control for Serial printer.

    This is source code.
    MSComm1.PortOpe n = True
    MSComm1.Output = [something to send]
    MSComm1.PortOpe n = False

    This code works almost all time, but sometime freeze application.
    When it freeses, the application cannot terminate from task manager.
    So the only way to terminate is push computer's switch.
    I cannot duplicate phenomenon.
    I don't know where is the freezing point.
    I guess the freezing point is 'MSComm1.PortOp en = False'
    Please, tell me how to avoid freezing.
Working...