> >> Is there a crossplatform way for IPC? > >> > >> I need to detect if an instance of my program is still running and
Can create a "lock" file, only problem is if the first app crashes and forgets to delete the file Can also have the process use a special name that you search for in the processes list > >> then send a filename to the already running process so it > can enque > >> it to a playlist. Can have a shared file and when writing to it, the first instance of the app will pick the data from there (don't poll on the file though, too bad practice - see if there's cross-platform way to get a notification that the file has changed [not sure if Linux has such a thing, but don't remember ANSI C / Unix doing it - in Windows there's no such thing in the filesystem related API I think, or there's something too low level to use, the one that's commonly used is a shell notification instead that you can listen for]) ---------------- George Birbilis ([EMAIL PROTECTED]) Computer & Informatics Engineer Microsoft MVP J# for 2004-2006 Borland "Spirit of Delphi" ++ QuickTime, Delphi, ActiveX, .NET components ++ http://www.kagi.com/birbilis ++ Robotics ++ http://www.mech.upatras.gr/~Robotics http://www.mech.upatras.gr/~robgroup _____ avast! Antivirus <http://www.avast.com> : Outbound message clean. Virus Database (VPS): 0649-2, 20/11/2006 Tested on: 22/11/2006 1:52:06 ?? avast! - copyright (c) 1988-2006 ALWIL Software. _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
