mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-28 23:28:49 -05:00
Debug print of shared memory size
This commit is contained in:
parent
0de538c723
commit
9e6d31dff3
3
main.cpp
3
main.cpp
@ -373,13 +373,14 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
if (!mem_jt9.attach ())
|
if (!mem_jt9.attach ())
|
||||||
{
|
{
|
||||||
if (!mem_jt9.create (sizeof (struct dec_data)))
|
if (!mem_jt9.create (sizeof (dec_data)))
|
||||||
{
|
{
|
||||||
splash.hide ();
|
splash.hide ();
|
||||||
MessageBox::critical_message (nullptr, a.translate ("main", "Shared memory error"),
|
MessageBox::critical_message (nullptr, a.translate ("main", "Shared memory error"),
|
||||||
a.translate ("main", "Unable to create shared memory segment"));
|
a.translate ("main", "Unable to create shared memory segment"));
|
||||||
throw std::runtime_error {"Shared memory error"};
|
throw std::runtime_error {"Shared memory error"};
|
||||||
}
|
}
|
||||||
|
qDebug () << "shmem size:" << mem_jt9.size ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user