#41 process hang forever under XP

closed-accepted
nobody
None
5
2008-06-19
2008-04-08
sy
No

46 self.hComPort = win32file.CreateFile(self.portstr,
47 win32con.GENERIC_READ | win32con.GENERIC_WRITE,
48 0, # exclusive access
49 None, # no security
50 win32con.OPEN_EXISTING,
51 win32con.FILE_ATTRIBUTE_NORMAL | win32con.FILE_FLAG_OVERLAPPED,
52 None)

line 51, CreateFile should not use FILE_ATTRIBUTE_NORMAL. Otherwise it can cause process hanging forever for my XP (once opened > 10 COM ports).

ref, http://www.codeguru.com/cpp/i-n/network/serialcommunications/article.php/c5425/

Discussion

  • sy

    sy - 2008-04-08
    • summary: process hang forever --> process hang forever under XP
     
  • Chris Liechti

    Chris Liechti - 2008-06-19
    • status: open --> closed-accepted
     

Log in to post a comment.