Boost logo

Boost Users :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2020-03-11 21:28:27


On 07/03/2020 1:17, Shen, Chang (MSFC-EV43) via Boost-users wrote:
> I test the class in Window 10 using MinGW 32bit compiler.
>
> g++ (MinGW.org GCC-8.2.0-3) 8.2.0
>
> Copyright (C) 2018 Free Software Foundation, Inc.
>
> This is free software; see the source for copying conditions.  There is NO
>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> I find that I only can create 1463 X objects.
>
> 1464^th object will throw exception:
>
> Dynamic exception type: boost::interprocess::interprocess_exception
>
> std::exception::what: WinApi FormatMessage returned error.
>
> Why this limitation?

A shared memory object creates a file. You can hit the file descriptor
limit of the OS.

However the "WinApi FormatMessage" error tells nothing, so a bug report
would be welcome.

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net