N
nigelwright7557
Guest
My pc recently did a Windows update and now my music player doesn't.
It has worked for many years fine.
Its written in C# .net wpf.
It gets stuck at the mp.open command.
Then gets stuck in a loop trying to get the length of music.
currentfname.Text = fname;
if (File.Exists(fname) == true)
{
mp.Open(new Uri(fname, UriKind.Relative)); //doesn't cause exception if file not found.
mp.Play();
mediaendedq = 0;
//save length of this track
//must wait until timespan is loaded !!!!!!!!!!!!!!!!!!
while (mp.NaturalDuration.HasTimeSpan == false) ///gets stuck here always returns false.
;
n.Wright
Continue reading...
It has worked for many years fine.
Its written in C# .net wpf.
It gets stuck at the mp.open command.
Then gets stuck in a loop trying to get the length of music.
currentfname.Text = fname;
if (File.Exists(fname) == true)
{
mp.Open(new Uri(fname, UriKind.Relative)); //doesn't cause exception if file not found.
mp.Play();
mediaendedq = 0;
//save length of this track
//must wait until timespan is loaded !!!!!!!!!!!!!!!!!!
while (mp.NaturalDuration.HasTimeSpan == false) ///gets stuck here always returns false.
;
n.Wright
Continue reading...