[Mono-winforms-list] Bug? DataGridView on Mono Crashes (or locks rather)... does not occur on Microsoft platforms

Stifu stifu at free.fr
Thu Feb 26 08:29:38 EST 2009


I know a lot of fixes for DataGridView went into Mono after 2.2.
See: http://i-nz.net/2009/01/15/datagridview-revamp/

Maybe you could check Mono 2.4 RC1 and see if it makes any difference.
Here's the openSUSE repo:
http://mono.ximian.com/monobuild/preview/download-preview/openSUSE_11.1/


W Allan Edwards wrote:
> 
> 
> I appear to have found a bug in the mono stack?  Or was it a design
> implementation choice?   
> 
> Here is the scenario... I pull data from a database, then load up a
> Dataset then find it to a Datagridview.  Then I substitute textual values
> inside of that grid based on the numeric values in the grid.  I do this
> "after" I have already bound the DataSet table to the DataGridView.  
> 
> On the Microsoft side (Vista) this error does not occur... or no lock up. 
> The DataTable "object" the datagridview is bound to simply updates to the
> underlying table data changed on the fly.  When you run the commented
> lines of code the application on Mono will lock up and just stop
> execution.  I get no exception thrown or any clue as to what is going on. 
> The app just locks, I have to manually kill the process.  I changed the
> code just to update the grid cell directly and it works fine on both
> platforms for display purposes.
> 
> // Commented code that locks on linux
> //BoundDataSet.Tables[0].Rows[i][DataGridViewColumnIndexToConvert] =
>                           //  DisplayValue;
> 
> // Uncommented code below runs on both mono and the Microsoft stack no
> problems as expected
> oDataGridView.Rows[i].Cells[DataGridViewColumnIndexToConvert].Value =
>                             DisplayValue;
> 
> Version information for reproduction
> 
> OpenSuse 11.1 32-bit Linux, Mono 2.2 (freshly released and installed)
> Microsoft Windows Vista Home Premium edition 32-bit, .NET 2.0 framework
> compilation for all libs
> 
> Algorithmic scenario
> 
> 1 - Pull db data
> 2 - Bind to DataGridView
> 3 - Update numeric values in the underlying bound DataTable bound to the
> Grid (originally via the DataTable, now just the Grid Display Cell value)
> 
> Thanks,
> -A-
> 
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Bug--DataGridView-on-Mono-Crashes-%28or-locks-rather%29...-does-not-occur-on-Microsoft-platforms-tp22223862p22224036.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list