I have a backup program that currently runs in our corporate environment on approximately 70 machines. A mixture of laptops, desktops and Windows (xp-32, vista-32, vista-64, 7-32-7-64) without problems.
There is one exception, and that is the reason I am posting help here.
On a single Dell Latitude machine running Windows 7 64 bit with .Net 4 Framework installed, the console application will crash before it launches Sub Main. It just gives a generic Windows error, "The problem caused the program to stop working correctly." without the ability to see debugging information.
Things I tried:
- Removing all non-standard software
- Commenting on a few statements that I thought might cause problems
- Recompiled for Auto CPU, x86 and x64 to find out if this has changed - - Virus scan disabled
- The user is an administrator, but I tried to run it as an administrator
- A mailbox was added to Sub Main to determine where it failed
- Added catch attempt to all relevant code
I managed to get a little more information from the event viewer:
Module name error: KERNELBASE.dll, version: 6.1.7600.16385, timestamp: 0x4a5bdbdf
Exception Code: 0xe0434f4d Error Offset: 0x0000b727
These next few entries seem strange to me:
Failure ID: 0x% 9
Application crash time: 0x% 10
Application path error:% 11
Fault Module path:% 12
I also managed to pull up a .wer file (Windows Error Report Flat File) and it hid much of the same information, but also included downloaded DLL files and other files.
Thank you for taking the time to read my wall of text, and hopefully someone will have ideas on how to proceed.
Joshua
edit:
I think the following calls to the Win32 API might cause problems, and these were the only things that I could not easily comment on without a lot of code rewriting.
If so, why only on this machine :(
' Obtain a handle to the console application window by passing the title of your application. Dim hWnd As Integer = Process.GetCurrentProcess().MainWindowHandle Dim hMenu As Integer = GetSystemMenu(hWnd, False) 'WIN API Functions to assist in disabling the Close button on the Console Window Private Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Integer, ByVal uPosition As Integer, ByVal uFlags As Integer) As Boolean Private Declare Function GetForegroundWindow Lib "user32" () As Integer Private Declare Function GetSystemMenu Lib "user32" (ByVal hWnd As Integer, ByVal bRevert As Boolean) As Integer Private Declare Function GetWindow Lib "user32" (ByVal hWnd As Integer, ByVal uCmd As Integer) As Integer Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hWnd As Integer, ByVal lpString As String, ByVal nMaxCount As Integer) As Integer Private Declare Function ShowWindow Lib "user32.dll" (ByVal hWnd As Integer, ByVal nCmdShow As Int32) As Boolean Public Declare Function WNetGetConnection Lib "mpr.dll" Alias "WNetGetConnectionA" (ByVal lpszLocalName As String, ByVal lpszRemoteName As String, ByRef cbRemoteName As Integer) As Integer