In this line I have a segfault because m_pThisBeatDistance is NULL when I drop a track on the waveform in your testing skin just after restart.