из < /p>
Код: Выделить всё
auto anotherShmInfo = std::move(shmInfo);
// auto anotherShmInfo = std::make_unique(*shmInfo);
< /code>
to < /p>
// auto anotherShmInfo = std::move(shmInfo);
auto anotherShmInfo = std::make_unique(*shmInfo);
Код: Выделить всё
X Error of failed request: BadShmSeg (invalid shared segment parameter)
Major opcode of failed request: 131 (MIT-SHM)
Minor opcode of failed request: 4 (X_ShmGetImage)
Segment id in failed request: 0xd7f49827
Serial number of failed request: 69
Current serial number in output stream: 69
Код: Выделить всё
typedef unsigned long ShmSeg;
typedef struct {
ShmSeg shmseg; /* resource id */
int shmid; /* kernel id */
char *shmaddr; /* address in client */
Bool readOnly; /* how the server should attach it */
} XShmSegmentInfo;
, так почему нельзя xshmsegmentInf)
, так почему нельзя xshmsegmentInf? У него нет указателя для самореализации, нет функционалов RAII.
Подробнее здесь: https://stackoverflow.com/questions/796 ... mseg-error
Мобильная версия