473,225 Members | 1,313 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

Single instance...

.... retreiving other instances parameters ?

How can I do this ?

TIA
Dec 6 '05 #1
6 1149
Frank,

The only way to do this is if you have a reference to the other
instance. You need to pass that instance to your class, and then access the
fields/properties that you want...

Hope this helps.

"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:eE***************@TK2MSFTNGP12.phx.gbl...
... retreiving other instances parameters ?

How can I do this ?

TIA

Dec 6 '05 #2
I can't use references, since each time a start a process, is a diferent
trhead.

I managed to know if the app is already running with Mutex, but I don't
know how to pass instance 2's arguments to instance 1...


Nicholas Paldino [.NET/C# MVP] wrote:
Frank,

The only way to do this is if you have a reference to the other
instance. You need to pass that instance to your class, and then access the
fields/properties that you want...

Hope this helps.

"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:eE***************@TK2MSFTNGP12.phx.gbl...
... retreiving other instances parameters ?

How can I do this ?

TIA


Dec 6 '05 #3
Franck,

Ok, I see what you are doing. Check out my response to an earlier post
which explains how you can do what you want to do (watch for line wrap):

http://groups.google.com/group/micro...128f9ddd957ada
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:%2*****************@TK2MSFTNGP12.phx.gbl...
I can't use references, since each time a start a process, is a diferent
trhead.

I managed to know if the app is already running with Mutex, but I don't
know how to pass instance 2's arguments to instance 1...


Nicholas Paldino [.NET/C# MVP] wrote:
Frank,

The only way to do this is if you have a reference to the other
instance. You need to pass that instance to your class, and then access
the fields/properties that you want...

Hope this helps.

"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:eE***************@TK2MSFTNGP12.phx.gbl...
... retreiving other instances parameters ?

How can I do this ?

TIA



Dec 6 '05 #4
Thank you for the answear, but I'm in 1.1 :-(

Nicholas Paldino [.NET/C# MVP] wrote:
Franck,

Ok, I see what you are doing. Check out my response to an earlier post
which explains how you can do what you want to do (watch for line wrap):

http://groups.google.com/group/micro...128f9ddd957ada

Dec 6 '05 #5
Franck,

The posting should give you some insight into how to implement it for
1.1. Basically, you have to set up a remoting server in your app which you
will call from the second app to indicate that another instance has started
up.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:eQ****************@tk2msftngp13.phx.gbl...
Thank you for the answear, but I'm in 1.1 :-(

Nicholas Paldino [.NET/C# MVP] wrote:
Franck,

Ok, I see what you are doing. Check out my response to an earlier
post which explains how you can do what you want to do (watch for line
wrap):

http://groups.google.com/group/micro...128f9ddd957ada


Dec 6 '05 #6
Ok, I just found that here :
http://www.codeproject.com/csharp/Si..._app_in_C_.asp

Thank you for your support !!!

Nicholas Paldino [.NET/C# MVP] wrote:
Franck,

The posting should give you some insight into how to implement it for
1.1. Basically, you have to set up a remoting server in your app which you
will call from the second app to indicate that another instance has started
up.

Dec 6 '05 #7

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

Similar topics

16
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? ...
18
by: Steve Barnett | last post by:
I want to ensure that there is only ever one instance of my app running on a single PC at any time. I understand that I can achieve this by using a mutex and, if I can't take ownership of the...
7
by: jsale | last post by:
I have made an ASP.NET web application that connects to SQL Server, reading and writing data using classes. I was recommended to use session objects to store the data per user, because each user...
1
by: Maileen | last post by:
Hi, How can i do (and test) a single instance of my form ? thanks, Maileen
9
by: MrSpock | last post by:
1. Create a new Windows Application project. 2. Open the project properties and check "Make single instance application". 3. Build. 4. Go to the release folder and run the application. 5. Try to...
3
by: sadanjan | last post by:
Hi , Appreciate if someone can clarify if database Share Memory Limit (2 GB ) in Unix 32 bit boxes is the top limit for all the databases put together in a database or is it for each of the...
3
by: Mark Jerde | last post by:
VS 2005. When I google "CSharp single instance form" the returned pages usually use a Mutex or the VB.NET runtime library....
13
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*...
3
by: sklett | last post by:
I suspect the answer might be in one of the words of my subject, but here goes anyway. I'm working on a system that will execute a very long (300+) chain of task objects. Here is some quick...
5
by: Sarath | last post by:
I've to write a single instance class. there are different methods to control the single instance of a program. I've tried the following method class CSingleton { public: CSingleton&...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.