Page 1 of 1
Debugging a MS C .dll
Posted: Tue Jul 30, 2024 6:08 am
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?
Re: Debugging a MS C .dll
Posted: Tue Jul 30, 2024 6:56 am
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 (103.97 KiB) Viewed 4386 times
Now his the "Play" button to launch Vensim.

- Image3.jpg (895 Bytes) Viewed 4386 times

- Image4.jpg (4.92 KiB) Viewed 4386 times