Serial? (SOLVED) lazarus / 31-LCL ---------------------------------------------------------------------- Degibbo · 2018-08-28 06:51 G'day All, Sorry if this is the wrong place to ask: Since upgrading to V1.8.4 & FPC 3.0.4 I have been unable to open a serial port that has been working OK for some time.  Is this a coincidence, or has the "Serial" unit changed? A call to SerOpen('COMx') returns 0 instead of the port handle.  COMx is correct (according to the W7 device manager, where X is the COM port number). I have tried a number of USB to Serial devices.  All return the same.  Any clues where I can look to debug what the problem is?  (with my PC?). Cheers & thanks, DG ---------------------------------------------------------------------- tetrastes · 2018-08-28 09:29 Did you try SerOpen('\\.\COMx') ? ---------------------------------------------------------------------- Thaddy · 2018-08-28 12:59 Try synaser directly. I have no problems here (I would have noticed..) I don't use the component. Tested FPC with synapse 3.0.4, 3.2.0 and (atm similar) 3.3.1. ---------------------------------------------------------------------- jamie · 2018-08-28 20:18 can't say anything about the code you are currently using but I know opening a com port in windows 10 still works as it use to but I use my own code... any comports over 9 need to use the '\\.\…..' in the file name, normally this also works with values below 10..  Also, I append the ":" at the end of the device name because the device name is like a drive letter...  COM9:  for example.. ---------------------------------------------------------------------- VTwin · 2018-08-29 00:29 I'm no expert, but have been using Synaser successfully for a few years. Nothing fancy, just reading a lab recording device, and only tested under Windows XP. ---------------------------------------------------------------------- Degibbo · 2018-08-29 01:23 G'day Gentlepersons, Thanks for the advice.  The problem was that Windas hasn't been releasing comports cleanly, just pushing up the COM number.  The problem started from COM 10 and up (thanks Jamie)  I also wondered why some code examples terminate the Comx with a : , so all good info.  I will prefix the port with the \\.\ and see how that goes for the high and low numbers. I guess this is now solved! Thanks.  Wonderful. DG