August 31, 2011

AlterX AlterX
Ant Farmer
123 posts

strange behaviour on n950

 

Hi all,
i’ve created an app for the n950; it works very well, but if i kill it in task manager, relaunching it, it doesn’t start anymore;
so i’ve tried to launch it in the terminal and it gives me the following message:

ERROR!!: lock reserved but no window id for binary name found

In my .desktop file i’m using “/usr/bin/single-instance /opt/MyApp/bin/Myapp

6 replies

August 31, 2011

Lukas Geyer Lukas Geyer
Gene Splicer
2074 posts

For every single instance application there is a lock file created (/tmp/single-instance-locks/<application>/instance.lock if I remember correctly). I guess this lock persists when killing your application, which prevents single-instance from launching another instance.

August 31, 2011

AlterX AlterX
Ant Farmer
123 posts

Ok but so is a problem of the system that doesn’t clear the lock…?

August 31, 2011

AlterX AlterX
Ant Farmer
123 posts

If i close my app with my close button, it always work; when i kill the app in the task manager it always doesn’t restart!!!
The lock file is always present in both case (closing the app)

August 31, 2011

Lukas Geyer Lukas Geyer
Gene Splicer
2074 posts

I think single-instance should release the lock even when the application gets terminated.

However, I am too little involved in Meego development to know why single-instance behaves this way or if this is a known limitation / bug. Probably the Meego forums or the Meego mailing list are better places to discuss this question.

August 31, 2011

AlterX AlterX
Ant Farmer
123 posts

Ok, but for that reason, ovi publisher has unpublished my app!

September 1, 2011

Kypeli Kypeli
Lab Rat
41 posts

You should look from the page below how to do single instance apps in Harmattan (it’s very badly documented by Nokia…)

http://developer.qt.nokia.com/wiki/Single_Instance_Harmattan_Applications

 
  ‹‹ [SOLVED] Qt Quick Components for Symbian via SmartInstaller      QML and Symbian Anna ››

You must log in to post a reply. Not a member yet? Register here!