Call MgslClose when finished using a port. The device handle is no longer valid after calling MgslClose. Closing a port resets the serial control signals to the inactive state, disables the receiver and transmitter, disables tracing, and flushes all data and tracing buffers. Other applications cannot use the port until the application calls MgslClose.
An exception to this behavior occurs when a program, such as the tracing utility, opens a handle to the device using MgslOpenTraceHandle. This call obtains a port handle for tracing purposes, even if another application currently has an open handle to the same port obtained with MgslOpen. The current tracing level and the contents of the trace buffers for a port are maintained as long as at least one these handles is open.
| Previous | Contents | Next |