Merge pull request #2458 from Benglin/master

Fix crash when invoking Form.ByLoftCrossSections with null input.
Disabled "heartbeatThread.Join" statement to avoid deadlock