Unhandled exception in Windows 7

johndoe

New Member
If I click on "New Task" and then "Add Data", I get an unhandled exception. Here is the error message:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at Eraser.Util.VolumeInfo..ctor(String volumeId)
at Eraser.Util.VolumeInfo.get_Volumes()
at Eraser.TaskDataSelectionForm..ctor()
at Eraser.TaskPropertiesForm.dataAdd_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
Eraser
Assembly Version: 6.0.6.1376
Win32 Version: 6.0.6.1376
CodeBase: file:///C:/Program%20Files/Eraser/Eraser.exe
----------------------------------------
Eraser.Manager
Assembly Version: 6.0.6.1376
Win32 Version: 6.0.6.1376
CodeBase: file:///C:/Program%20Files/Eraser/Eraser.Manager.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
Eraser.Util
Assembly Version: 6.0.6.1376
Win32 Version: 6.0.6.1376
CodeBase: file:///C:/Program%20Files/Eraser/Eraser.Util.DLL
----------------------------------------
Eraser.DefaultPlugins
Assembly Version: 6.0.6.1376
Win32 Version: 6.0.6.1376
CodeBase: file:///C:/Program%20Files/Eraser/Plugins/Eraser.DefaultPlugins.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.4926 built by: NetFXw7
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Eraser.resources
Assembly Version: 6.0.6.1376
Win32 Version: 6.0.6.1376
CodeBase: file:///C:/Program%20Files/Eraser/en/Eraser.resources.DLL
----------------------------------------
BevelLine
Assembly Version: 1.0.3589.29437
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/Eraser/BevelLine.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Eraser.Manager.resources
Assembly Version: 6.0.6.1376
Win32 Version: 6.0.6.1376
CodeBase: file:///C:/Program%20Files/Eraser/en/Eraser.Manager.resources.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
Joel can comment on the exception. But it is now well documented that build 1376 does not run well (or sometimes at all) under Windows 7 x64. Recen nightly builds do run, and, even if you are running the 32 bit OS, I suggest that you try one of these.

David
 
That's due to the enumeration of the drives available on the computer in build 1376. Apparently when coding the function I mis-read the Windows documentation and so the return value of the system call was interpreted wrongly. The 6.0 branch nightly builds should resolve this.
 
Back
Top