There must be a very simple way to do this.
How can I have a program check to see if an instance of it is already running in OS4, using C? I want to prevent the possibility of multiple instances running at the same time.
Thanks!
There must be a very simple way to do this.
How can I have a program check to see if an instance of it is already running in OS4, using C? I want to prevent the possibility of multiple instances running at the same time.
Thanks!
Set up a named public message port or semaphore or turn your application into a basic Commodity which allows only one instance.
Better than that, register your app with the Application Library and set it up as a unique application.
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2
Can the utility.library name space functions also help here?