Spike UK
asked on
Application crash due to KERNELBASE.dll possibly?
I have written an application that runs as a Windows Desktop application , running on a windows 10 laptop that occasionally crashes. The crash may happen after 24 hours, maybe 60 hours - maybe longer, sometimes not at all.
The Widows Event Viewer shows that the application crash was preceded by an Error from the ,Net Runtime- at around a minute before athe application is reported to have crashed.
Is this an application error or due to the KERNELBASE.dll? Or something else!
The details of the error are:
Log Name: Application
Source: Application Error
Date: 24/09/2018 01:20:16
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: C-035
Description:
Faulting application name: MyApplication.exe, version: 2.0.7.10, time stamp: 0x5ba4b1a1
Faulting module name: KERNELBASE.dll, version: 10.0.17134.1, time stamp: 0x149ab0fd
Exception code: 0xe0434352
Fault offset: 0x0010d722
Faulting process ID: 0x1958
Faulting application start time: 0x01d451f2970b38f1
Faulting application path: C:\Program Files\Company1\MyApplicati on.exe
Faulting module path: C:\Windows\System32\KERNEL BASE.dll
Report ID: 212dc380-af79-47ed-9362-dc 496bd13999
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</Event ID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000 </Keywords >
<TimeCreated SystemTime="2018-09-24T00: 20:16.2661 66000Z" />
<EventRecordID>4323</Event RecordID>
<Channel>Application</Chan nel>
<Computer>C-035</Computer>
<Security />
</System>
<EventData>
<Data>MyApplication.exe</D ata>
<Data>2.0.7.10</Data>
<Data>5ba4b1a1</Data>
<Data>KERNELBASE.dll</Data >
<Data>10.0.17134.1</Data>
<Data>149ab0fd</Data>
<Data>e0434352</Data>
<Data>0010d722</Data>
<Data>1958</Data>
<Data>01d451f2970b38f1</Da ta>
<Data>C:\Program Files\Company1\MyApplicati on.exe</Da ta>
<Data>C:\Windows\System32\ KERNELBASE .dll</Data >
<Data>212dc380-af79-47ed-9 362-dc496b d13999</Da ta>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
and the detailed view is:
Application: MyApplication.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServ ices.
ExternalException at System.Drawing.Graphics.Me asureStrin g(System.S tring, System.Drawing.Font, System.Drawing.SizeF, System.Drawing.StringForma t)
at System.Drawing.Graphics.Me asureStrin g(System.S tring, System.Drawing.Font, Int32)
at System.Windows.Forms.Threa dException Dialog..ct or(System. Exception)
at System.Windows.Forms.Appli cation+Thr eadContext .OnThreadE xception(S ystem.Exce ption)
at System.Windows.Forms.Contr ol.WndProc Exception( System.Exc eption)
at System.Windows.Forms.Contr ol+Control NativeWind ow.OnThrea dException (System.Ex ception)
at System.Windows.Forms.Nativ eWindow.Ca llback(Int Ptr, Int32, IntPtr, IntPtr)
The Widows Event Viewer shows that the application crash was preceded by an Error from the ,Net Runtime- at around a minute before athe application is reported to have crashed.
Is this an application error or due to the KERNELBASE.dll? Or something else!
The details of the error are:
Log Name: Application
Source: Application Error
Date: 24/09/2018 01:20:16
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: C-035
Description:
Faulting application name: MyApplication.exe, version: 2.0.7.10, time stamp: 0x5ba4b1a1
Faulting module name: KERNELBASE.dll, version: 10.0.17134.1, time stamp: 0x149ab0fd
Exception code: 0xe0434352
Fault offset: 0x0010d722
Faulting process ID: 0x1958
Faulting application start time: 0x01d451f2970b38f1
Faulting application path: C:\Program Files\Company1\MyApplicati
Faulting module path: C:\Windows\System32\KERNEL
Report ID: 212dc380-af79-47ed-9362-dc
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</Event
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000
<TimeCreated SystemTime="2018-09-24T00:
<EventRecordID>4323</Event
<Channel>Application</Chan
<Computer>C-035</Computer>
<Security />
</System>
<EventData>
<Data>MyApplication.exe</D
<Data>2.0.7.10</Data>
<Data>5ba4b1a1</Data>
<Data>KERNELBASE.dll</Data
<Data>10.0.17134.1</Data>
<Data>149ab0fd</Data>
<Data>e0434352</Data>
<Data>0010d722</Data>
<Data>1958</Data>
<Data>01d451f2970b38f1</Da
<Data>C:\Program Files\Company1\MyApplicati
<Data>C:\Windows\System32\
<Data>212dc380-af79-47ed-9
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
and the detailed view is:
Application: MyApplication.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServ
ExternalException at System.Drawing.Graphics.Me
at System.Drawing.Graphics.Me
at System.Windows.Forms.Threa
at System.Windows.Forms.Appli
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Nativ
ASKER
Thanks - Can you explain why KERNELBASE.dll is referred to?
Does it appear to be a graphical error then?
Does it appear to be a graphical error then?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you explain why KERNELBASE.dll is referred tokernel is responsible for memory management. Here it seems your resources are not freed properly and keep on growing memory usages and finally got crashed. But though it is handled by kernel, in stack trace, you are getting it.
Just add proper exception handling. Furthermore, if your application runs also 30 or 60 hours, then you need to check your resource handling of unmanaged resources. E.g. if you draw your own components using bitmaps, then you need to free them.