I am developing several programs that run a .VPM file via a Webservice interface. When I run the webservice and find an error in the underlying model, I am unable to republish the .VPM file. Basically the webservice seems to keep it locked up.. Is there any way I can unlock the file without restarting my computer. I did try stopping and restarting IIS ( I am running the webservice on a local machine), but that did not seem to work... Would be grateful if anyone has ideas
Thanks
Phil
problems with VPM file being locked
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
This is for the multicontext version. To make sure a .vpm file is not in use in a single context open a different .vpm file (actually any 1 context using a .vpm file would lock it).
Alternatively you can either restart the web service or use LoadLibrary/FreeLibrary instead of linking with the .lib file for the Vensim DLL and be sure that FreeLibrary is called.
Alternatively you can either restart the web service or use LoadLibrary/FreeLibrary instead of linking with the .lib file for the Vensim DLL and be sure that FreeLibrary is called.