pass arguments to existing instance

P

Peter Morris

My app is a single-instance one. When a second instance is executed I need
to pass the startup arguments to the existing instance. Can anyone
recommend a good approach for this? I tried the single-instance application
approach in the VisualBasic DLL but for some reason it was crashing on
another development machine stating that an API was unavailable. So I would
like to try an entirely different approach, one with full source code so
that I can fix it if it breaks :)


Thanks


Pete
 
P

Peter Morris

Ahh. Well, yes...that looks to me like it didn't show up until .NET 2.0.
You would have trouble getting it to run on .NET 1.1. :)

I forgot to mention, this is .NET 2 :)

For some reason there is one machine that crashes with an unsupported API
error when this VB class tries to execute, even though it is WinXP, the same
as my development machine. I intend to look into using remoting instead.



Pete
 
P

Peter Morris

Suit yourself. Personally, I'd look into why that one computer is broken,
rather than reworking your entire development strategy around that one
computer's shortcomings.

It's more about control. If there is something in there that is broken then
I need to fix it and cannot, whereas if I write something myself I have full
control and can do what I like :)

Besides, I've delegated the job to someone else whist I rewrite the website
in ASP MVC :)


Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top