Debugging DLL

Debugging DLL

mail7WJMZ
Collaborator Collaborator
102 Views
3 Replies
Message 1 of 4

Debugging DLL

mail7WJMZ
Collaborator
Collaborator

[ FlexSim 22.1.0 ]

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.

0 Likes
Accepted solutions (1)
103 Views
3 Replies
Replies (3)
Message 2 of 4

mischa_spelt
Advisor
Advisor
Accepted solution

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.

0 Likes
Message 3 of 4

mail7WJMZ
Collaborator
Collaborator

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
Message 4 of 4

JordanLJohnson
Autodesk
Autodesk

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.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes