Fix StackOverflowException bug
Status: Beta
Brought to you by:
epurasu
There is a issue when there are many folders and subfolders involved. Its throwing stackoverflow exception. Fix is, change recurance code of SetExtent1 with loop into IsoDirectory.cs. Do the same with SetExtent2 too.
public static void SetExtent1( ArrayList stack, int index, UInt32 currentExtent ) {
for (; index < stack.Count; index++)
{
IsoDirectory currentDir = (IsoDirectory)stack[index];
currentDir.Extent1 = currentExtent;
currentExtent = currentExtent + currentDir.Size1 / IsoAlgorithm.SectorSize;
foreach (IsoFolderElement child in currentDir.Children)
{
if (child.IsDirectory)
{
stack.Add(child);
}
}
}
}