Debugging a MS C .dll
-
- Member
- Posts: 41
- Joined: Sun Oct 07, 2018 7:56 pm
- Vensim version: DSS
Debugging a MS C .dll
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?
-
- Super Administrator
- Posts: 4844
- Joined: Wed Mar 05, 2003 3:10 am
Re: Debugging a MS C .dll
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). Now his the "Play" button to launch Vensim.
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). Now his the "Play" button to launch Vensim.
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559