This happens on Win98 and WinME. WinXP works as expected.
It seems the Timecode type does not accept a double when there are no tracks on the timeline and none have been there earlier (Vegas is just started and nothing else is done). If given an integer it works fine.
The first time this is run, I get "Overflow or underflow in the arithmetic operation". If I run it again all is well.
This is not terribly important of course, I just stumbled on it while doing errorhandling for QuickEnvelope. You can't fix it with try-catch because it bombs at compiletime.
It seems the Timecode type does not accept a double when there are no tracks on the timeline and none have been there earlier (Vegas is just started and nothing else is done). If given an integer it works fine.
import SonicFoundry.Vegas;
import System.Windows.Forms;
var test : double = 1.1;
var myTimecode : Timecode = new Timecode(test);
MessageBox.Show(myTimecode.ToMilliseconds().ToString());
The first time this is run, I get "Overflow or underflow in the arithmetic operation". If I run it again all is well.
This is not terribly important of course, I just stumbled on it while doing errorhandling for QuickEnvelope. You can't fix it with try-catch because it bombs at compiletime.