[Xiaomi Mi A2 / 6X Questions & Answers] kurogam3:
I used newest mi flash 2018 nad i got an error. I updated the first post its attached there

Error log:

[22:36:27]:10 COM10 6,9961779s write time out,maybe device was disconnected.

[22:37:00]:10 COM10 0,4752161s [22:37:00 COM10]:System.IO.IOException: The requested resource is in use.

at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)

at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)

at System.IO.Ports.SerialPort.Open()

at XiaoMiFlash.code.bl.SerialPortDevice.registerPort( SerialPort port)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash() at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)

at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)

at System.IO.Ports.SerialPort.Open()

at XiaoMiFlash.code.bl.SerialPortDevice.registerPort( SerialPort port)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()

[22:38:21]:30 COM30 4,935272s write time out,maybe device was disconnected.

[22:39:06]:30 COM30 0,4636368s [22:39:06 COM30]:System.IO.IOException: The requested resource is in use.

at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)

at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)

at System.IO.Ports.SerialPort.Open()

at XiaoMiFlash.code.bl.SerialPortDevice.registerPort( SerialPort port)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash() at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)

at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)

at System.IO.Ports.SerialPort.Open()

at XiaoMiFlash.code.bl.SerialPortDevice.registerPort( SerialPort port)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()

[22:42:01]:30 COM30 3,5075972s write time out,maybe device was disconnected.

[22:42:23]:30 COM30 0,0421577s [22:42:23 COM30]:System.IO.IOException: The requested resource is in use.

at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)

at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)

at System.IO.Ports.SerialPort.Open()

at XiaoMiFlash.code.bl.SerialPortDevice.registerPort( SerialPort port)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash() at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)

at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)

at System.IO.Ports.SerialPort.Open()

at XiaoMiFlash.code.bl.SerialPortDevice.registerPort( SerialPort port)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()

[22:43:00]:30 COM30 0,3836646s [22:43:00 COM30]:System.IO.IOException: The requested resource is in use.

at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)

at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)

at System.IO.Ports.SerialPort.Open()

at XiaoMiFlash.code.bl.SerialPortDevice.registerPort( SerialPort port)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash() at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)

at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)

at System.IO.Ports.SerialPort.Open()

at XiaoMiFlash.code.bl.SerialPortDevice.registerPort( SerialPort port)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()