Increase asynchronous read / write with the error "Not enough system resources to complete the requested service"

I (apparently) accidentally get an error:

"Not enough system resources to complete the requested service"

When using boost::asio::async_read_untilor boost::asio::async_writewith a serial port.

Serial port declared as:

boost::asio::serial_port mSerialPort;

Following this error, I am trying

try
{
    mSerialPort.cancel();
    mSerialPort.close();
}
catch(boost::system::system_error error)
{
    ;
}

Where one of them (not yet defined which) hangs and never returns, without even raising an exception.

In general, what does this error mean?

Has anyone encountered this problem? Any direction, in particular, should I explore?


EDIT:

The corresponding serial port uses a USB emulator.

SO-, Hans Passant, , ? .


2:

, :

Microsoft

?

+4
2
0

, , , HDD . , , .

- . , - ( ).

- ? , .

:

  • char
  • Async - , .. .
  • ?
  • , ,
  • , .

boost/asio ( POSIX, ): http://www.webalice.it/fede.tft/serial_port/serial_port.html

0

All Articles