Can't write to the file run1.vdf (busy of insufficient permissions using Vensim DLL

Use this forum to post Vensim related questions.
Post Reply
pbreach
Member
Posts: 29
Joined: Mon Oct 26, 2015 5:23 pm
Vensim version: DSS

Can't write to the file run1.vdf (busy of insufficient permissions using Vensim DLL

Post by pbreach »

Every now and again I get the error in the subject headline when I am running a model with the Vensim DLL multiple time while keeping the same run name. Something like:

Code: Select all

vensim_command('SPECIAL>LOADMODEL|model.vpm')
vnesim_command('SIMULATE>RUNNAME|Run1')
vensim_command('MENU|RUN|O')
vensim_get_data('Run1', 'variable', ...)
vensim_get_data('Run1', NULL)
and then repeat. Aside from giving the run a different name each time, is there a way to prevent the vdf file from locking up? The last line in the quoted code was supposed to remove the lock on the .vdf file which was mentioned here: https://www.vensim.com/documentation/in ... ?25670.htm
Administrator
Super Administrator
Posts: 4838
Joined: Wed Mar 05, 2003 3:10 am

Re: Can't write to the file run1.vdf (busy of insufficient permissions using Vensim DLL

Post by Administrator »

Are you running from a location where something like DropBox/Google Drive is also running and syncing files?
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply