Page 1 of 1

"resetting" Vensim DLL after Webservice error

Posted: Mon Mar 16, 2009 7:10 am
by yobiman
I am currently running a trial simulation where I have Vensim embedded in a Webservices (.Net) application that is operating with a local Internet service (IIS)..
When I debug the Webservice and have an error, the vensim application crashes and I only seem to be able to recover unless I restart my machine. Is there any way of avoiding the restart

Many thanks

Posted: Mon Mar 16, 2009 9:47 am
by bob@vensim.com
Going to services control and restarting IIS should have the same effect as rebooting. If the error is repeatable you should provide us with more details so we can fix the problem.

Posted: Thu Mar 19, 2009 1:32 pm
by yobiman
Thanks Bob,
That seems to work. In essence the DLL is crashing whenever I have loaded a model and try to run a command that cannot be executed (i.e. the nResult = 0)
For example, if I make an error in setting a variable using the SIMULATE>SETVAL (e.g. passing a zero or Null field from a database into a vensim variable that requires an absolute value greater than 1).


Phil