473,486 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Force single instantiation of application

Greetings:

How do I make it so that a .NET application will only allow a single
instantiation? I'm really not sure how else to ask the question or what
objects to inspect to discover the answer.

James Pyrich
Nov 21 '05 #1
4 909
> Greetings:

How do I make it so that a .NET application will only allow a single
instantiation? I'm really not sure how else to ask the question or what
objects to inspect to discover the answer.

Do a search on Google for this newsgroup with "single mutex" you get
hundreds of answers.

http://groups.google.com/groups?hl=e...t.languages.vb

Cor
Nov 21 '05 #2
Check this thread: http://www.dotnet247.com/247referenc...52/262227.aspx

"James Pyrich" <py*****@collectionsoftware.com> wrote in message
news:uL*************@tk2msftngp13.phx.gbl...
Greetings:

How do I make it so that a .NET application will only allow a single
instantiation? I'm really not sure how else to ask the question or what
objects to inspect to discover the answer.

James Pyrich

Nov 21 '05 #3
Shiva,

In my opinion is the solution from Tom Shelton is the best, I forgot he was
again very active, so he will show it himself probably.

Cor

"Shiva"
Check this thread: http://www.dotnet247.com/247referenc...52/262227.aspx
"James Pyrich" <py*****@collectionsoftware.com> wrote in message
news:uL*************@tk2msftngp13.phx.gbl...
Greetings:

How do I make it so that a .NET application will only allow a single
instantiation? I'm really not sure how else to ask the question or what
objects to inspect to discover the answer.

James Pyrich

Nov 21 '05 #4
Thanks for your help, both you and Shiva--the Mutex is exactly what I
needed.

Maybe I should learn German? :)

James Pyrich

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Ob*************@tk2msftngp13.phx.gbl...
Shiva,

In my opinion is the solution from Tom Shelton is the best, I forgot he
was
again very active, so he will show it himself probably.

Cor

"Shiva"
Check this thread:

http://www.dotnet247.com/247referenc...52/262227.aspx

"James Pyrich" <py*****@collectionsoftware.com> wrote in message
news:uL*************@tk2msftngp13.phx.gbl...
Greetings:

How do I make it so that a .NET application will only allow a single
instantiation? I'm really not sure how else to ask the question or what
objects to inspect to discover the answer.

James Pyrich


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8552
by: SPG | last post by:
Hi, I have a servlet application that I am trying to write a very basic load tester for. There application has several servlets, but all rely on the same session being used (IE: For logged in...
7
12794
by: zhou | last post by:
Hi there, We have a compiler specific issue which requires us to force template instantiation. This works fine. The problem comes when I try using std:find() on vector. Since vector has no member...
12
2591
by: mlimber | last post by:
This is a repost (with slight modifications) from comp.lang.c++.moderated in an effort to get some response. I am using Loki's Factory as presented in _Modern C++ Design_ for message passing in...
5
2322
by: Hari | last post by:
Guys please help me to solve this strange problem what Iam getting as follows.. Trying to instantiate a global instance of a template class as follows :- when i build this code with debug and...
16
10068
by: Elad | last post by:
Hi, I have an application that is made up of several executables. I need all these executables to use the same instance of an object. What is the best, most efficient way to approach this? ...
3
4941
by: Maka Sili | last post by:
Hi, My VC++ application does not have a titlebar (and therefore no System menu, no minimize, no maximize and no close button). We have a custom button for minimize and close. When the app...
4
4193
by: Jason | last post by:
I have a web service running on IIS 5.0. We know the web service is not threadsafe, and want to force aspnet_wp.exe to only run one instance of our web service. What settings do we use to do...
13
5360
by: JohnQ | last post by:
Why would anyone write: class SomeThing // class littered with non-domain single-instancing code :( { private: SomeThing(); static SomeThing* pInstance_; public: static SomeThing*...
6
4997
by: Jen | last post by:
I've implemented single-instance functionality in my .exe by using the mutex method. Works great. But when the .exe detects that it is not the first instance I want to bring the main window of...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4865
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.