comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: runtime application avoid multi open
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: runtime application avoid multi open [message #80029 is a reply to message #80028] Tue, 24 April 2012 08:51 Go to previous messageGo to previous message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
On Apr 24, 10:09 am, Rongchang Chen <chenrc1...@gmail.com> wrote:
> Thanks David and Vincent.

So this will work fine if you have only one IDL session open. But, if
the user starts two separate IDL windows then the xregister won't know
about the other applications. A clunky way to deal with this, is to
use a "lock file", where you write some file to some directory (say /
tmp/ or something) then everytime you start the application you test
if the file exists. If so, then it's running somewhere. Everytime
you close the program, just remember to delete the file...

Russell
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: runtime application avoid multi open
Next Topic: small consulting firm in NM needs an IDL developer

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:14:56 PDT 2025

Total time taken to generate the page: 0.00958 seconds