Skip to content

HTFanControl.Main.HTFanControl.LoadVideoTimecodes Function does not help user debug issues with invalid formatted wind file #23

Description

@joshuatedesco

Issue found in top gun (1986) wind track.

Add better error handling and logging here

string[] lineData = line.Split(',');
string lineTime = lineData[0];
string lineCmd = lineData[1];

does not detect invalid delimiter

ex:
expected: 00:42:49,OFF
actual: 00:42:49;OFF

error in crashlog:
Index was outside the bounds of the array.

HTFanControl

at HTFanControl.Main.HTFanControl.LoadVideoTimecodes(String fileName, String filePath)
at HTFanControl.Main.HTFanControl.SyncVideo()
at System.Threading.Tasks.Task.<>c.b__140_1(Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions