Page 1 of 1

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

Posted: Mon Aug 29, 2016 3:58 am
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

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

Posted: Mon Aug 29, 2016 6:51 am
by Administrator
Are you running from a location where something like DropBox/Google Drive is also running and syncing files?