Home All Groups Group Topic Archive Search About

Question about changing executable name in VS.Net

Author
25 Jan 2006 12:40 AM
LDD
Hi Folks

I changed the name of the executable that gets created for my project.
Once I change the name, it takes a really long time (several minutes) to
actually load from both VS.Net and running the exe outside of VS.Net

It seems to sit on the following line, where I check for duplicate
instances.
If
(UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurren
tProcess.ProcessName)) > 0) Then

Any ideas why this would happen?

thanks
LDD

Author
25 Jan 2006 7:21 AM
Cor Ligthert [MVP]
LDD,

Did you try already this method for single instance of a program.

http://www.vb-tips.com/default.aspx?ID=59135549-e5dd-4501-9526-343ac05a7617

It is probably easier to implement this than searching for your current
problem.

I hope this helps,

Cor


Show quoteHide quote
"LDD" <largedoubledou***@gmail.com> schreef in bericht
news:NKCdnZowB-aGVEveRVn-sw@magma.ca...
> Hi Folks
>
> I changed the name of the executable that gets created for my project.
> Once I change the name, it takes a really long time (several minutes) to
> actually load from both VS.Net and running the exe outside of VS.Net
>
> It seems to sit on the following line, where I check for duplicate
> instances.
> If
> (UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurren
> tProcess.ProcessName)) > 0) Then
>
> Any ideas why this would happen?
>
> thanks
> LDD
>
>