"resetting" Vensim DLL after Webservice error

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

"resetting" Vensim DLL after Webservice error

Post 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
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post 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.
yobiman
Member
Posts: 30
Joined: Wed May 28, 2008 1:28 am

Post 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
Post Reply