Talk:Determine if only one instance is running: Difference between revisions

From Rosetta Code
Content added Content deleted
(New section: VB solution)
(Common case)
Line 1: Line 1:
Except for possibly a few languages, this task is highly operating system dependent.
Except for possibly a few languages, this task is highly operating system dependent.
It's probably not a good task for rosettacode.--[[User:64.238.49.65|64.238.49.65]] 20:30, 19 November 2008 (UTC)
It's probably not a good task for rosettacode.--[[User:64.238.49.65|64.238.49.65]] 20:30, 19 November 2008 (UTC)
: It's a very common problem, and platform-specific code isn't inappropriate, as long as the platform is identified in the example. --[[User:Short Circuit|Short Circuit]] 02:05, 21 November 2008 (UTC)



== VB solution ==
== VB solution ==


It looks like the VB solution only checks for previously run instances of the application. What about instances started after this one? Should this be a problem and should we choose to keep this task, it should be corrected. --[[User:Mwn3d|Mwn3d]] 21:36, 19 November 2008 (UTC)
It looks like the VB solution only checks for previously run instances of the application. What about instances started after this one? Should this be a problem and should we choose to keep this task, it should be corrected. --[[User:Mwn3d|Mwn3d]] 21:36, 19 November 2008 (UTC)
: The common case requiring detection of multiple instances are running is to prevent multiple instances of a program from accessing app-global resources. That's probably what the author of the VB solution had in mind. The task author should probably clarify the task's intent and requirements. --[[User:Short Circuit|Short Circuit]] 02:05, 21 November 2008 (UTC)

Revision as of 02:05, 21 November 2008

Except for possibly a few languages, this task is highly operating system dependent. It's probably not a good task for rosettacode.--64.238.49.65 20:30, 19 November 2008 (UTC)

It's a very common problem, and platform-specific code isn't inappropriate, as long as the platform is identified in the example. --Short Circuit 02:05, 21 November 2008 (UTC)


VB solution

It looks like the VB solution only checks for previously run instances of the application. What about instances started after this one? Should this be a problem and should we choose to keep this task, it should be corrected. --Mwn3d 21:36, 19 November 2008 (UTC)

The common case requiring detection of multiple instances are running is to prevent multiple instances of a program from accessing app-global resources. That's probably what the author of the VB solution had in mind. The task author should probably clarify the task's intent and requirements. --Short Circuit 02:05, 21 November 2008 (UTC)