[Qt-interest] A couple of Issues in Qt Application

Boudewijn Rempt boud at valdyas.org
Thu Oct 29 19:54:16 CET 2009


On Thursday 29 October 2009, Raja Rokkam wrote:
> Hi All,
> 
> 1.)  I am trying to implement QSharedMemory to prevent running multiple
> instance of my application. The code works fine in WIndows but in Unix it
> works fine as long as there is no crash. If there is a crash the
> QSharedMemory survives the crash and so later no instance is spawned until
> PC is rebooted.*
> Is there any solution for this issue or any other simpler and cleaner
> solution ?*

Use http://qt.nokia.com/products/appdev/add-on-products/catalog/3/Utilities/qtsingleapplication

It's also used in Qt Creator and I use it in my own app, and it works well enough.

-- 
Boudewijn Rempt | http://www.valdyas.org



More information about the Qt-interest-old mailing list