I use third party libary in my forms application with C# Visual Studio 2013 and I take fingerprints with a fingerprint scanner.
While taking fingerprints my application throw unhandled exeption. What can be reason of this error?
This is error:
"Unhandled exception at 0x693B0A37 (msvcr100.dll) in
GetFingerprints.exe: 0xC0000005: Access violation reading location
0x0E762000."
And here is the error which shows in event viewer.
Faulting application name: GetFingerprints.exe, version: 1.0.0.0, time
stamp: 0x542bcc4c Faulting module name: MSVCR100.dll, version:
10.0.40219.325, time stamp: 0x4df2be1e Exception code: 0xc0000005 Fault offset: 0x00010a37 Faulting process id: 0x1094 Faulting
application start time: 0x01cfdd5c12b8ea77 Faulting application path:
C:\Proje\MyProject\bin\Debug\GetFingerprints.exe Faulting
module path: C:\Windows\system32\MSVCR100.dll Report Id:
fdc362c7-494f-11e4-9a0a-f0921cdc1fd5
Related
I have developed a UWP app and uploaded it to Windows Store. Everything was working perfectly fine until I created a new self-signing certificate after the previous one expired and re-published the new changes to the store. The application after downloading and installing from the store crashes immediately after opening and leaves an event log with the below error in the Windows Event Viewer. The same issue occurs when installing through a side-loading build.
I have tried all methods suggested online(running system scan for corrupted files, register dll, use dll file from another system, etc). I have also uploaded an image showing my windows version. Any help will be appreciated. Thank you.
Faulting application name: XYZWindowsApps.exe, version: 1.0.1.0, time stamp: 0x61e99c28
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1466, time stamp: 0xe01c7650
Exception code: 0xc000027b
Fault offset: 0x000000000010b362
Faulting process id: 0x2d0c
Faulting application start time: 0x01d80e24b18250ad
Faulting application path: C:\Program
Files\WindowsApps\NameXYZ.AppName_1.0.13.0_x64__tesn1012p7f1y\XYZWindowsApps.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 07e3f487-1127-4f89-ba1b-1e1cb032168c
Faulting package full name: NameXYZ.AppName_1.0.13.0_x64__tesn1012p7f1y
Faulting package-relative application ID: App
Using StoreContext.CanSilentlyDownloadStorePackageUpdates when the network is disconnected will cause the app to crash, and I try to use Try-Catch to fail to catch this exception.
In addition, when I use StoreContext.TrySilentDownloadStorePackageUpdatesAsync to download the update package, disconnecting the network at this time will also cause the APP to crash too.
Code snippet:
[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions]
public bool CanSilentlyUpdate()
{
try
{
//There will be an error:
// System.AccessViolationException :“Attempted to read or write protected memory.
// This is often an indication that other memory is corrupt.”
return StoreContext.GetDefault().CanSilentlyDownloadStorePackageUpdates;
}
catch (Exception ex)
{
Debug.WriteLine(ex);
return false;
}
}
The following is the error log in Event Viewer:
Eventlog 1: Application: MyApp.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException at
Windows.Services.Store.StoreContext.get_CanSilentlyDownloadStorePackageUpdates()
Eventlog 2: Faulting application name: MyApp.exe, version: 1.0.0.0,
time stamp: 0x96223b82 Faulting module name:
Windows.ApplicationModel.Store.dll, version: 10.0.19041.329, time
stamp: 0x92fa3e59 Exception code: 0xc0000005 Fault offset: 0x0009fcb0
Faulting process id: 0x6d0c Faulting application start time:
0x01d6511c5d86de48 Faulting application path: C:\Program
Files\WindowsApps\MyApp\MyApp.exe Faulting module path:
C:\Windows\System32\Windows.ApplicationModel.Store.dll Report Id:
d67098d6-39c7-4a02-a837-b523821c9ca2 Faulting package full name: MyApp
Faulting package-relative application ID: App
Eventlog 3: Application: MyApp.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 7947FCB0
Stack:
Eventlog 4: Faulting application name: MyApp.exe, version: 1.0.0.0, time
stamp: 0x96223b82 Faulting module name:
Windows.ApplicationModel.Store.dll, version: 10.0.19041.329, time
stamp: 0x92fa3e59 Exception code: 0xc0000005 Fault offset: 0x0009fcb0
Faulting process id: 0x36a0 Faulting application start time:
0x01d65131af3782e2 Faulting application path: C:\Program
Files\WindowsApps\MyApp\MyApp.exe Faulting module path:
C:\Windows\System32\Windows.ApplicationModel.Store.dll Report Id:
4a027389-345c-4f16-a605-276f2774c768 Faulting package full name: MyApp
Faulting package-relative application ID: App
This kind of exception seems to be unable to be caught using managed code, what should I do?
After discussing with other engineers, it looks like there is no other way to handle it.
This method should be running in the background so that you could not catch it in the UI thread. It essentially bypasses any chance dev has at handling the exception.
Our suggestion is that you need to check the network before calling this method and give a tip when calling this method to tell the user to keep network connection. And you could try to subscribe to the NetworkInformation.NetworkStatusChanged Event in your app.
I run my program in visual studio and it works great, but when i publish it and installed it dont start. I checked the problem on the event viewer and it's the information that comes with the error:
Faulting application name: Screen recorder.exe, version: 1.0.0.0, time
stamp: 0x59f8f3ad
Faulting module name: KERNELBASE.dll, version: 6.1.7601.23915, time stamp:
0x59b94abb
Exception code: 0xe0434352
Fault offset: 0x0000c54f
Faulting process id: 0x22f8
Faulting application start time: 0x01d35294634fde75
Faulting application path: C:\Users\jmarin\AppData\Local\Apps\2.0\LAHCHL75.EB9\PJ1V31LT.BZW\scre..tion_b46dd58387405837_0001.0000_c9a5ed0df210aa7f\Screen recorder.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: a1aed905-be87-11e7-849a-989096bc2875
Application: Screen recorder.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at ScreenRecord.Form1..ctor()
at Screen_recorder.Program.Main()
Exception Info: System.IO.FileNotFoundException
Please look into your code, you are using file which is not available while publishing. you can copy the file into the root directory and try it again
I am getting Unhandled Exception error randomly in my project while taking fingerprints. Sometimes when I clean and rebuild my project problem being solved. But when I rebuild again problem appear. How can I handle this problem?
Here is the error show in Windows EventViewer
Faulting application name: GetFingerprints.exe, version: 1.0.0.0, time stamp: 0x543daf42
Faulting module name: GreenBit.dll, version: 1.5.0.0, time stamp: 0x543b738b
Exception code: 0xc0000005
Fault offset: 0x0001e984
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13
Hi; i have a windows service. i want to start my windows service by a batch file(.bat file). i do it succesfully.
My service is starting very good. But 4-5 seconds later stop itself. Not working 4-5 seconds later.if i look my event logs on my windows server 2008,
an error occured. My error is below. How can i solve this problem?
Faulting application name: MyProject.WindowsService.exe, version: 1.0.0.0, time stamp: 0x4ffec57c
Faulting module name: clr.dll, version: 4.0.30319.269, time stamp: 0x4ee9ae83
Exception code: 0xc00000fd
Fault offset: 0x003565fd
Faulting process id: 0x1bbc
Faulting application start time: 0x01cd60323465e0b0
Faulting application path: C:\MyProject.WindowsService\bin\Debug\MyProject.WindowsService.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 742f8164-cc25-11e1-ae08-00155d100687
0xc00000fd indicates a stack overflow.
Are you calling Win32 apis using p/invoke?
Can you add some logging to the application and see how far it gets before faulting
Does it fail when running as an application (not as a service?)