deleting runs with multicontext dll

Use this forum to post Vensim related questions.
Post Reply
yobiman
Member
Posts: 30
Joined: Wed May 28, 2008 1:28 am

deleting runs with multicontext dll

Post by yobiman »

Hi
I am running a large number of simulations via a webservice using the multicontext dll. When I run the simulations for a while the number of ctxtxx folders grow and since my runs have a lot data, they each take up a lot of space.
Is there a way of deleting the run data after I have had the opportunity to copy it into a database (i.e. using C# or something similar)

Many thanks
Phil
Administrator
Super Administrator
Posts: 4621
Joined: Wed Mar 05, 2003 3:10 am

Re: deleting runs with multicontext dll

Post by Administrator »

If you are using C#, the easiest thing to do is just use an API delete function.

http://msdn.microsoft.com/en-us/library ... elete.aspx
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
yobiman
Member
Posts: 30
Joined: Wed May 28, 2008 1:28 am

Re: deleting runs with multicontext dll

Post by yobiman »

Many thanks
Phil
tomfid
Administrator
Posts: 3816
Joined: Wed May 24, 2006 4:54 am

Re: deleting runs with multicontext dll

Post by tomfid »

If you indicate wantcleanup>0 when you make the call to create the context, this should be taken care of automatically, as long as you delete the context when you're done with it.
Post Reply