How to ensure that a Silverlight OOB app only has a single instance? -


is there way ensure single instance of desktop version of trusted silverlight 4 out of browser app run?

or need manually enforce through creation of crude mutex of sort?

if must enforce myself, i'd @ creating file in isolated storage lock , deleting on exit. i'd check files existence on launch prevent opening subsequent instance. i'd need way handle app crashing or exiting other way prevents lock file being deleted. instinct have timeout on file , ignore if it's on period of time old. unfortunately, app plays movies it's run several hours under normal circumstances. lock timeout of few hours isn't popular users in situation. there better solutions?

check out link:

http://www.tozon.info/blog/post/2009/11/01/detecting-duplicate-instances-of-a-running-silverlight-application.aspx

perhaps help.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -