![]() |
problem with OpenMutexA (getting result).
Greetings...
By the following code: code: i'm trying to check if my app. is running. But I can't see any "App is running." MessageBoxes... (App is running and it has mutex with such name. I can see "TEST" MessageBox.) What I'm doing wrong? Best regards... |
If your app is the running installer, take a look here,
http://nsis.sourceforge.net/Allow_on...aller_instance |
My app not an installer. And I've already saw that code. But my question not about it...
|
Then, perhaps you might want to take a look on this,
http://nsis.sourceforge.net/FindProcDLL_plug-in |
Thats completely nothing of the kind I neded...
All that I need, is just point on my error (with correction). For example this: code: code (changed from http://nsis.sourceforge.net/Allow_on...aller_instance) Always shows "Please close App before continue." independently of test application presence... |
Your quotes are messed up, escape " or use '
PHP Code:
|
in second and third examles of http://nsis.sourceforge.net/Allow_on...aller_instance used double-quotes...
also i've tried and nothing changed... |
1. you'll need to use the different quotes.
2. you missed to specify an output argument: System::Call 'kernel32::CreateMutexA(i 0, i 0, t "{B1454C40-EAFE-4124-809F-90DEC53E06EC}") i .n ?e' |
I'm actually need help with my first "code"...
There are single quotes and there is output argument.... |
And what's the code you've used in your application?
|
I've created two applications.
One, fore creating mutex: code: and one, for check this mutex: code: |
if you got problems with your first code, it's missing the error output:
Quote:
use the code i submitted previously and it will work (i'm using it all the time with my codes) |
I've changed my code:
code: but MessageBox appears independently of mutex presence... |
The error value goes into $1 but you check $R1. Check $1 or change r1 to R1.
|
thanks. now it works.
|
| All times are GMT. The time now is 04:11. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.