Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Uniq blocking with multiple users logged into same machine
Uniq blocking with multiple users logged into same machine [message #35668] Sun, 11 March 2012 19:58 Go to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 219
Registered: June 2011
Experienced Member
I am using Uniq in Windows for an application where I want only one copy running per user, but the problem is if another user logs into that same machine and tries to run the same application, Uniq blocks execution until the first user logs out or exits their instance.

How do I use Uniq so it runs single instance per user instead of single instance per machine?

Does something like this work?:

pipePath = Format("\\\\.\\PIPE\\%s\\%s", GetExeTitle(), GetUserName());


Or maybe I can append a security token for the current session?

**EDIT** Yes, changing this line of code allows me to run the application as both myself and under guest account, so I think this works.

[Updated on: Sun, 11 March 2012 20:39]

Report message to a moderator

Re: Uniq blocking with multiple users logged into same machine [message #35673 is a reply to message #35668] Mon, 12 March 2012 00:01 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Well, this post should go to Bazaar, but... Smile

I didn't think to multiuser environment, indeed... your solution is ok.
I'll patch the original sources on next days, thank you for the report !

Max
Re: Uniq blocking with multiple users logged into same machine [message #35674 is a reply to message #35673] Mon, 12 March 2012 00:15 Go to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 219
Registered: June 2011
Experienced Member
Ah, sorry about the miscategorization. I tend to include Bazaar in all of my assemblies so I was looking through the lists and didn't find Uniq.

Thanks for your help! Very Happy
Previous Topic: How to change the ZOrder of childcontrols at runtime?
Next Topic: dBase Memo field
Goto Forum:
  


Current Time: Fri Mar 29 05:55:58 CET 2024

Total time taken to generate the page: 0.01465 seconds