Open GoogleCodeExporter opened 8 years ago
I finally had some time to get the source and have a look on this issue (mhhh,
yes mor than one year after :D...)
The first issue is with the Trailer panel. I had to remove it because it's
relying on a media player feature (AxWMPLib.AxWindowsMediaPlayer) which is not
available on Win2008. I did try to install it but it is not straightforward :/
In the method itemsView_DrawNode, I had to add a surrounding the code with a
"if (e.Node.IsVisible)".
In FileUtil.cs, I had to rewrite the method "public static bool Compare(string
path1, string path2)".
public static bool Compare(string path1, string path2)
{
try
{
if (File.Exists(path1) && File.Exists(path2))
{
MemoryStream mem1 = new MemoryStream();
MemoryStream mem2 = new MemoryStream();
using (System.IO.FileStream fs1 = new System.IO.FileStream(
path1, System.IO.FileMode.Open,
System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite))
{
CopyStream(fs1, mem1);
}
using (System.IO.FileStream fs2 = new System.IO.FileStream(
path2, System.IO.FileMode.Open,
System.IO.FileAccess.Read, System.IO.FileShare.ReadWrite))
{
CopyStream(fs2, mem2);
}
byte[] file1 = mem1.ToArray();
byte[] file2 = mem2.ToArray();
if (mem1.Length == mem2.Length)
{
for (int i = 0; i < mem1.Length; i++)
{
if (file1[i] != file2[i])
{
return false;
}
}
return true;
}
}
}
catch { }
return false;
}
public static void CopyStream(Stream input, Stream output)
{
byte[] b = new byte[32768];
int r;
while ((r = input.Read(b, 0, b.Length)) > 0)
output.Write(b, 0, r);
}
O.
Original comment by VLetr...@gmail.com
on 25 Dec 2011 at 3:21
Original issue reported on code.google.com by
OgeG...@gmail.com
on 28 Aug 2010 at 10:44