question

Steven Chen avatar image
0 Likes"
Steven Chen asked Jordan Johnson commented

Debugging DLL

Hello,

Debugging (flexsim.com)
I tried first method but got error while Visual Studio opening flexsim.exe.

crashonsplashscreen.png

Exception thrown at 0x000000018073B6B0 (flexsim.dll) in flexsim.exe: 0xC0000005: Access violation reading location 0x0000000000000228.


Second method (Attach to Process) works fine.

I use Module SDK to build DLL.

FlexSim 22.1.0
debuggingvisual studio
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Mischa Spelt avatar image
0 Likes"
Mischa Spelt answered Jordan Johnson commented

Yes, you cannot open FlexSim from Visual Studio. You need to start it as an external application, then attach VS as debugger after it has fully started.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Chen avatar image Steven Chen commented ·

But as I read from user manual, the first method allows Visual Studio to lanuch FlexSim.

usermanualdebugging.png


Perhaps I have something wrong in Visual Studio settings, or this method is no longer available for latest FlexSim?

0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Steven Chen commented ·

The documentation you reference is out of date. I will add an issue to the dev list to update it. @Mischa Spelt is correct, you need to launch FlexSim, and then attach Visual Studio to the main FlexSim process.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.