Hi,
I'm working on implementing kinematic simulation with Chrono in a CAD software
Using ChronoEngine.dll, I have an issue when debugging my application.
When debugging this simple bit of code (copied from
demo_IRR_motors.cpp):
chrono::ChVector<> positionA2(-3, 2, -2);
std::shared_ptr<chrono::ChBody> stator2;
std::shared_ptr<chrono::ChBody> rotor2;
// Create the motor
auto rotmotor2 = chrono_types::make_shared<chrono::ChLinkMotorRotationAngle>();
// Connect the rotor and the stator and add the motor to the system:
rotmotor2->Initialize(rotor2, stator2, chrono::ChFrame<>(positionA2));
I have an "Access violation reading location 0x000..." in the Initialize function at the last line...
I have no problem when executing the code in release mode however, and the motor seems to behave correctly in the simulation (most of the time).
No issues (in release or debug) with other links in my system (such as ChLinkLockPrismatic for example).
Is it a known issue? Do you have any idea what could possibly cause this on my side?
Thank you,
Geoffroy ALEXANDRE