Debug print of shared memory size

This commit is contained in:
Bill Somerville 2020-07-18 18:49:20 +01:00
parent 0de538c723
commit 9e6d31dff3
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -373,13 +373,14 @@ int main(int argc, char *argv[])
}
if (!mem_jt9.attach ())
{
if (!mem_jt9.create (sizeof (struct dec_data)))
if (!mem_jt9.create (sizeof (dec_data)))
{
splash.hide ();
MessageBox::critical_message (nullptr, a.translate ("main", "Shared memory error"),
a.translate ("main", "Unable to create shared memory segment"));
throw std::runtime_error {"Shared memory error"};
}
qDebug () << "shmem size:" << mem_jt9.size ();
}
else
{