We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

2.0.3.0 Performance/RefreshGrid sample

Hi, I just downloaded the 2.0.3.0 syncfusion package, and theres a very interesting sample in it called Performance/RefreshGrid. Thank you for this sample; it definately points out some usefull avenues for performance optimisations. Unfortunately I''m having trouble getting the sample to run. At line 108, a System.ExecutionEngineException is thrown. This is what line 108 looks like: e.Cancel = GridGdiPaint.Instance.DrawText(e.Graphics, e.DisplayText, e.TextRectangle, e.Style);

5 Replies

AD Administrator Syncfusion Team March 17, 2004 10:34 AM UTC

What operating system are you using? On my XP system, I can load, build and run both the CS and VB versions of that sample under .NET 1.0 and .NET 1.1? Can you post the call stack? That line you posted is trying to use interop to access GDI drawing code instead of the .NET GDI+ code. Have you changed the sample in some so it needs GDI+ for some reason (like drawing gradients)?


AD Administrator Syncfusion Team March 17, 2004 01:17 PM UTC

Im using windows 2000, latest SP, VS.2003, Syncfusion 2.0.3.0 installed and rebooted. Going ot try windows XP later today. The project is completely unmodified, except to convert to VS.2003. Unfortunately, the call stack isnt very informative: [] > RefreshGrid.exe!RefreshGrid.PerformanceGrid.OnDrawCellDisplayText(Syncfusion.Windows.Forms.Grid.GridDrawCellDisplayTextEventArgs e = {Syncfusion.Windows.Forms.Grid.GridDrawCellDisplayTextEventArgs}) Line 163 + 0x61 bytes C# [] RefreshGrid.exe!RefreshGrid.Form1.Main() Line 390 C# Heres the output: ''DefaultDomain'': Loaded ''c:\winnt\microsoft.net\framework\v1.1.4322\mscorlib.dll'', No symbols loaded. ''RefreshGrid'': Loaded ''C:\Program Files\Syncfusion\Essential Suite\2.0.3.0\Grid\Samples\Performance\RefreshGrid\CS\bin\Debug\RefreshGrid.exe'', Symbols loaded. ''RefreshGrid.exe'': Loaded ''c:\winnt\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll'', No symbols loaded. ''RefreshGrid.exe'': Loaded ''c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll'', No symbols loaded. ''RefreshGrid.exe'': Loaded ''c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll'', No symbols loaded. ''RefreshGrid.exe'': Loaded ''c:\winnt\assembly\gac\syncfusion.grid\2.0.3.0__3d67ed1f87d44c89\syncfusion.grid.dll'', No symbols loaded. ''RefreshGrid.exe'': Loaded ''c:\winnt\assembly\gac\syncfusion.shared\2.0.3.0__3d67ed1f87d44c89\syncfusion.shared.dll'', No symbols loaded. ''RefreshGrid.exe'': Loaded ''c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll'', No symbols loaded. An unhandled exception of type ''System.ExecutionEngineException'' occurred in syncfusion.grid.dll


AD Administrator Syncfusion Team March 17, 2004 02:58 PM UTC

It may be a font problem. We''ll try it on Win2K here.


AD Administrator Syncfusion Team March 17, 2004 04:37 PM UTC

It turns out that grid is calling the unicode version of TEXTMETRIC, and this appears not to work on Win2K. We will handle this in our code.


AD Administrator Syncfusion Team March 18, 2004 03:21 AM UTC

excelent - please send us a patch/update ASAP

Loader.
Live Chat Icon For mobile
Up arrow icon