VOGONS

Common searches


File Locking

Topic actions

First post, by SteveBouffe

User metadata
Rank Newbie
Rank
Newbie

Hello,

I'm trying to use DOSBOX to run software on X64 XP

The problem is when 2 instances of the App start. Normally the first instance opens a file for output and keeps s open until the program terminates. So if another instance is started, it will try to open the same file and is unable to so the program displays "Only one instance may run"

However I can open multiple instances and all will start. When I looked deeper, it seems that when the file is available ie instance one closes the data is then written in some sort of caching.

Is it possible to prevent this happening?

Reply 3 of 4, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Are you sure you need such a feature? If it's only to lock out multiple versions
of the app running, and you've developed it on your own, just create a file in
some standard place and delete when the app is shut down. Then you can test
at any time if an instance is already running.