When you are running the software (HEIDI) or DirectX drivers, the mouse interface for d6 joint creation will crash if you click the mouse twice without moving it.
My guess is that a corrupt rendering primitive is generated when the swing1_angle and swing2_angles are zero. (Note: this problem goes away if you switch to OpenGL)
To fix the problem, you set mNeedRebuild only if the mouse has moved along the y axis:
[around line 1100 of px_d6joint.ms]
on mouseMove click do
(
mNeedRebuild = gridDist.y != 0;
case click of
(
2: ...
3: ...
4: ...
5: ...
)
)
Hope this info is useful.
I could not reproduce it.