Single Instance Application...


Author
Message
Robin J Giltner
Robin J Giltner
StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)StrataFrame User (125 reputation)
Group: Forum Members
Posts: 105, Visits: 650
When using Strataframe the required Startup Object is AppMain to that the database connections for the Business Objects can be established, and with that, you can't use the Visual Studio Option of Single Instance Application in the Application Properties.  So I was wondering what was the best way of handling this manually.

I spent a few minutes reading through some ways people have done this online, but it seems to boil down to searching through the processes and finding one that matches your form's Title or something such.  I ended writing a quick method that searches on the type of the form in the AppMain's InitApplication method.

Is this the best way to handle this ?  Also this doesn't currently allow the same application to be run by multiple users on the same system, ie users over Terminal Services etc.  I guess I would have to add another quick check for if the Owner of that Process is the current Application's process owner or some such.

I was just wanting to get some input from anyone who may have had to do this as well.

Thanks

Robin Giltner


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search