Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Issues with multiple instances
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Guus Davidson  
View profile  
 More options Oct 10 2006, 3:56 am
Newsgroups: microsoft.public.dotnet.framework.compactframework
From: Guus Davidson <GuusDavid...@discussions.microsoft.com>
Date: Tue, 10 Oct 2006 00:56:01 -0700
Local: Tues, Oct 10 2006 3:56 am
Subject: Re: Issues with multiple instances
Thanks Fabien

I've been pulling my hair out all day trying to sort it out.
that link didn't work for me but

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGui...

did

anyway cheers for the help

Guus

"Fabien" wrote:
> Hi,

> Check out this link :
> http://www.gotdotnet.com/userfiles/jonwells/OneInstance.zip

> BR

> Fabien Decret
> Windows Embedded Consultant

> ADENEO (ADESET)
> http://www.adeneo.adetelgroup.com/

> Guus Davidson a écrit :

> > Hi,

> > I am pretty new to c# development / compact frame work so if  this is a dumb
> > question I appologise.

> > I have a application that has multiple forms, the main form owns and
> > launches a splash screen, then once the loading is all done I ditch the
> > splash screen.

> > My problem is that during the start up it is possible for me to launch
> > multiple instances of my application.

> > I am quiet unsure why this is happening, I am doing the main loading of my
> > applications engine  in the method called from the forms load event. It seems
> > that up to a certain point it is possible to create a new instances of the
> > application, but then after a certain point it brings the loaded instance to
> > the foreground rather than creating a new one.

> > I have been looking into a few ways to try and solve this and am familiair
> > with using named mutexes in other languages but it seems that this isn't
> > supported.
> > How is it possible to complish this in C# using the compact framework API.
> > I've tried using the method call

> > iMutex.WaitOne();

> > but all this does is stack up instances of my application until the current
> > application is killed.

> > I've seen a  few postings in the news groups about using unmanaged code to
> > create the mutex, is this really the only solution ?

> > I hope my posting is clear and someone out there can explain where I am
> > going wrong.

> > thanks in advance

> > Guus Davidson


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google