The problem only occurs when visual styles are not enabled.
Adding Application.EnableVisualStyles() in main() before any forms are instantiated solves the problem.
Log Name: Application
Source: Application Error
Date: Sat 17 12 16 13:40:18
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: DESKTOP-38TOM7K
Description:
Faulting application name: CyTraderBF.exe, version: 5.2.21.0, time stamp: 0x57d3fb8a
Faulting module name: comctl32.dll, version: 5.82.14393.447, time stamp: 0x5819c2cf
Exception code: 0xc0000005
Fault offset: 0x00043cce
Faulting process id: 0x1380
Faulting application start time: 0x01d25859abbb83ac
Faulting application path: C:\Users\xxxxx\AppData\Local\Apps\2.0\74VK8NRE.XGE\N181BL0D.KRJ\cytr..tion_e95a99aca2c10e1b_0001.0000_b3347634ec7c3484\CyTraderBF.exe
Faulting module path: C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.447_none_5507ded2cb4f7f4c\comctl32.dll
Report Id: 6d2aacf0-d5e6-4942-a609-fc6d7a835f67
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</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-12-17T13:40:18.126718900Z" />
<EventRecordID>120734</EventRecordID>
<Channel>Application</Channel>
<Computer>DESKTOP-38TOM7K</Computer>
<Security />
</System>
<EventData>
<Data>CyTraderBF.exe</Data>
<Data>5.2.21.0</Data>
<Data>57d3fb8a</Data>
<Data>comctl32.dll</Data>
<Data>5.82.14393.447</Data>
<Data>5819c2cf</Data>
<Data>c0000005</Data>
<Data>00043cce</Data>
<Data>1380</Data>
<Data>01d25859abbb83ac</Data>
<Data>C:\Users\xxxxx\AppData\Local\Apps\2.0\74VK8NRE.XGE\N181BL0D.KRJ\cytr..tion_e95a99aca2c10e1b_0001.0000_b3347634ec7c3484\CyTraderBF.exe</Data>
<Data>C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.447_none_5507ded2cb4f7f4c\comctl32.dll</Data>
<Data>6d2aacf0-d5e6-4942-a609-fc6d7a835f67</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
----------------------------------
Log Name: Application
Source: .NET Runtime
Date: Sat 17 12 16 13:40:18
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: DESKTOP-38TOM7K
Description:
Application: CyTraderBF.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhand exception.
Exception Info: System.AccessViolationException
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ToolTip.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ToolTip+ToolTipNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
at .()
Event Xml:
<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='.NET Runtime'/><EventID Qualifiers='0'>1026</EventID><Level>2</Level><Task>0</Task><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime='2016-12-17T13:40:18.001842900Z'/><EventRecordID>120733</EventRecordID><Channel>Application</Channel><Computer>DESKTOP-38TOM7K</Computer><Security/></System><EventData><Data>Application: CyTraderBF.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhand exception.
Exception Info: System.AccessViolationException
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ToolTip.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ToolTip+ToolTipNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
at .()
</Data></EventData></Event>
----------------------------------
Return to General Help / Support
Users browsing this forum: No registered users and 0 guests