22 December 2018, 15:06 | #1 |
IRATA.ONLINE Operator
Join Date: Apr 2018
Location: Denton
Posts: 19
|
Am I subtly closing serial.device wrong?
This is one of the last bugs I am trying to work out, before shipping the first release of PLATOTerm for the Amiga:
Currently, when using 7WIRE (RTS/CTS), I can only run PLATOTerm once. Running again, it no longer responds to anything from the modem (tcpser in this case), and I restart tcpser (but I do not have to restart the computer or platoterm), and it works again. Also, when using telser.device, I can only use it once, as it opens a connection to the device, and it stays in the running list of processes in telsermon, and doesn't go away. (even though I am calling closedevice, gracefully clearing out all the iorequests, and finally closing the ports...) What's going on? Code is here: https://github.com/tschak909/platote...aster/src/io.c -Thom |
22 December 2018, 15:50 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
Not sure if it is related to your problem but you seem to call CloseDevice twice for the same unit:
In the beginning you call OpenDevice with readio. Then you copy the result from readio to writeio, so that they both represent the same unit. But in the end you call CloseDevice for both readio and writeio. The first call complements the OpenDevice call, but the second call is out of sync. |
22 December 2018, 20:36 | #3 |
IRATA.ONLINE Operator
Join Date: Apr 2018
Location: Denton
Posts: 19
|
Ok, good to know. I was initially just closing for readio, I was trying to see if I needed to do it for writeIO too...
-Thom |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AmiTCP Setup Serial.device | BadHatGamer | Amiga scene | 24 | 12 November 2017 16:24 |
ArtSer serial device problem.. | spannernick | support.Hardware | 0 | 18 May 2016 17:59 |
Serial port to character device file? [Solved] | kolla | support.FS-UAE | 5 | 02 December 2015 20:50 |
'best' serial.device replacement? | gizmomelb | New to Emulation or Amiga scene | 6 | 16 December 2005 14:40 |
serial.device troubles | dannystaple | New to Emulation or Amiga scene | 3 | 03 June 2005 11:00 |
|
|