Debugging a MS C .dll

Use this forum to post Vensim related questions.
Post Reply
Dr John P Weldon
Member
Posts: 41
Joined: Sun Oct 07, 2018 7:56 pm
Vensim version: DSS

Debugging a MS C .dll

Post by Dr John P Weldon »

I have a .dll that compiles without error in both Debug and Release modes. The model is also OK. However, when I run the model in Vensim DSS I get an assertion failure within the .dll. The reason for this is proving difficult to track down. Can I use the Visual Studio debugger while running the model? If so, how?
Administrator
Super Administrator
Posts: 4844
Joined: Wed Mar 05, 2003 3:10 am

Re: Debugging a MS C .dll

Post by Administrator »

Yes, it's easy.

From within Visual Studio, access the project properties. Under the "Debugging" section, find the "Command" setting. Set this to point to the Vensim executable (usually C:\Program Files\Vensim\vendss64MC.exe).
Image1.jpg
Image1.jpg (103.97 KiB) Viewed 4376 times
Now his the "Play" button to launch Vensim.
Image3.jpg
Image3.jpg (895 Bytes) Viewed 4376 times
Image4.jpg
Image4.jpg (4.92 KiB) Viewed 4376 times
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
Post Reply