Re: Data Grid exception ... Shows a big red cross in place of the data grid in the form...
Vince P <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <000301c689fe$1e2dbbd0$5a893370$@net> |
I think all of the Big red x errors I encountered in 1.1 were due to threading issues. --- Vince > -----Original Message----- > From: Discussion relating to the specifics of the C# and Managed C++ languages > [mailto:[email protected]] On Behalf Of Sashital, Shekhar R > (GE Infra, Energy) > Sent: Wednesday, June 07, 2006 1:20 AM > To: [email protected] > Subject: Re: [DOTNET-CX] Data Grid exception ... Shows a big red cross in place of > the data grid in the form... > > Can someone help me please? I tried searching the net here but in vain. > > -----Original Message----- > From: Discussion relating to the specifics of the C# and Managed C++ languages > [mailto:[email protected]]On Behalf Of Sashital, Shekhar R (GE > Infra, Energy) > Sent: Tuesday, May 30, 2006 8:17 PM > To: [email protected] > Subject: [DOTNET-CX] Data Grid exception ... Shows a big red cross in place of the > data grid in the form... > > > > I am getting the following exception when I bring up a dialog which contains a > data grid object and also a big red cross appears in the dialog in place of the data > grid. I am having .Net 1.1 SP1 installed on the machine. This error is occuring at a > customer site but is not reproducible on my machine. Note that I get this error on > the customer machine only when I invoke this dialog from an Excel Addin > (programmed to call an API that will invoke this dialog) and not from a Win32 > program that pops up the dialog when invoked (invokes fine with the data grid in it). > The form is single threaded i.e. no seperate threads exist that would update the > dialog. Has anybody seen this? I am sure someone must have. Please help. > > > > See the end of this message for details on invoking just-in-time (JIT) > > debugging instead of this dialog box. > > > > ************** Exception Text ************** > > System.ArgumentException: Invalid parameter used. > > at System.Drawing.Graphics.CheckErrorStatus(Int32 status) > > at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 > width, Int32 height) > > at System.Drawing.Graphics.FillRectangle(Brush brush, Rectangle rect) > > at System.Windows.Forms.DataGridParentRows.PaintBorder(Graphics g, > Rectangle bounds) > > at System.Windows.Forms.DataGridParentRows.Paint(Graphics g, Rectangle > visualbounds, Boolean alignRight) > > at System.Windows.Forms.DataGrid.OnPaint(PaintEventArgs pe) > > 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 System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) > > at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) > > at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 > > msg, IntPtr wparam, IntPtr lparam) > > > > > > ************** Loaded Assemblies ************** mscorlib > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase: > > file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll > > ---------------------------------------- > > System1APIClient > > Assembly Version: 5.0.0.1 > > Win32 Version: 5.0.0.1 > > CodeBase: > > file:///C:/Program%20Files/Bently%20Nevada/System%201/API/System1APICl > > ient.DLL > > ---------------------------------------- > > CommonAPIClasses > > Assembly Version: 5.0.0.1 > > Win32 Version: 5.0.0.1 > > CodeBase: > > file:///c:/winnt/assembly/gac/commonapiclasses/5.0.0.1__adaf68f46008ca > > 76/commonapiclasses.dll > > ---------------------------------------- > > System > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase: > > file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/syst > > em.dll > > ---------------------------------------- > > System.Data > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase: > > file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089 > > /system.data.dll > > ---------------------------------------- > > System.Xml > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase: > > file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/ > > system.xml.dll > > ---------------------------------------- > > System.Windows.Forms > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase: > > file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c5 > > 61934e089/system.windows.forms.dll > > ---------------------------------------- > > System.Drawing > > Assembly Version: 1.0.5000.0 > > Win32 Version: 1.1.4322.2032 > > CodeBase: > > file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50 > > a3a/system.drawing.dll > > ---------------------------------------- > > > > ************** JIT Debugging ************** To enable just in time > > (JIT) debugging, the config file for this> application or machine > > (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: > > > > <configuration> > > <system.windows.forms jitDebugging="true" /> </configuration> > > > > When JIT debugging is enabled, any unhandled exception will be sent to > > the JIT debugger registered on the machine rather than being handled > > by this dialog. > > > > Regards, > > Shekhar > > =================================== > This list is hosted by DevelopMentorR http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentorR http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com