SciLor's Open Source Forums
http://forum.scilor.com/

Exception on download start
http://forum.scilor.com/viewtopic.php?f=179&t=202
Page 1 of 1

Author:  oruam57 [ Fri May 21, 2010 7:45 pm ]
Post subject:  Exception on download start

First of all thanks for GrooveDownloaderWM!

Unfortunately, I could not download at all because I got an exception anytime I started a download.

So I looked for the cause. I found the problem here

public static void StartUp()
{
AppPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
if (AppPath.StartsWith(@"file:\"))
{
AppPath = AppPath.Substring(6);
}
DownloadDir = Path.Combine(AppPath, "Downloads");
MyProject.Forms.frmGroove.Text = myProgram.longname + " - " + myProgram.version;
MyProject.Forms.frmGroove.Show();
}

in the AppPath initialization. I replaced it with my absolute location

public static void StartUp()
{
AppPath = @"\Storage Card\Program Files\GroovesharkDownloader";
DownloadDir = Path.Combine(AppPath, "Downloads");
MyProject.Forms.frmGroove.Text = myProgram.longname + " - " + myProgram.version;
MyProject.Forms.frmGroove.Show();
}

and now the program works.

Hope it helps for next release.

Author:  SciLor [ Fri May 21, 2010 8:07 pm ]
Post subject:  Re: Exception on download start


Author:  oruam57 [ Fri May 21, 2010 8:54 pm ]
Post subject:  Re: Exception on download start


Author:  SciLor [ Fri May 21, 2010 8:58 pm ]
Post subject:  Re: Exception on download start

Thank you,

the problem is, that I do not check for special characters, that are not allowed in paths when I use them for the directory names/file names.
This problem will be fixed :), I was just to lazy :D.

If you find any more problems, please continue posting them here ;)

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/