$ 0 0 Just an update on this - I've managed to free up the line device by using gc_ResetLineDev. This reset the line device ready for the next call.