Hello,

This is happening both with qt examples and my own sample code. Specifically, when I execute this:

Qt Code:
  1. QSharedMemory* mem = new QSharedMemory("testkey");
  2. mem->create(sizeof(int));
  3. if (mem->attach())
  4. qDebug() << "Successful attach()";
  5. else
  6. qDebug() << "attach() failed, code " << mem->error() << ", " << mem->errorString();
To copy to clipboard, switch view to plain text mode 

I get this:

attach() failed, code 0 , ""
The same thing happens with the examples (examples/ipc/sharedmemory and another one from Nokia that displays images). The attach fails yet no error flag is thrown. Moreover this happens on Max 10.5, Windows XP, and Ubuntu 9.10; I'm using Qt 4.5.3. Does anybody know what's going on? Thank you--

Matt