Hi,
I'm using Syncfusion 4.3.0.30 on both win2000 SP4 and winXP SP2 os.
Using the ProgressBarAdv with WaitingGradient style works perfectly on WinXP SP2. However, launching the same ProgressBarAdv under win2000 SP4 throws an System.NullreferenceException.
this is ugly, because our main application has to support both operating systems.
We need a workaround for this problem as soon as possible.
Yours
Christian!
---
I attached an sample which demonstrates this behaviour.
The exception message follows:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Windows.Forms.Tools.ProgressBarAdv.DrawWaitingGradient(Graphics g)
at Syncfusion.Windows.Forms.Tools.ProgressBarAdv.DrawProgress(Graphics g, Rectangle rect)
at Syncfusion.Windows.Forms.Tools.ProgressBarAdv.OnBarPaint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.ThemedControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ProgressBarAdvTest
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Desktop/ProgressBarAdvTest/ProgressBarAdvTest/bin/Debug/ProgressBarAdvTest.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/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.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Syncfusion.Shared.Base
Assembly Version: 4.302.0.30
Win32 Version: 4.302.0.30
CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Desktop/ProgressBarAdvTest/ProgressBarAdvTest/bin/Debug/Syncfusion.Shared.Base.DLL
----------------------------------------
Syncfusion.Core
Assembly Version: 4.302.0.30
Win32 Version: 4.302.0.30
CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Desktop/ProgressBarAdvTest/ProgressBarAdvTest/bin/Debug/Syncfusion.Core.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:
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.
ProgressBarAdvTest.zip