[Mono-dev] Mono crash on calling datatable.importrow
Easy_Rider9999
jhmgbl2 at t-online.de
Sun Mar 29 08:35:17 EDT 2009
<Code>_dtMedikamente.ImportRow(dr)</code>
I am importing a row from a datatable to a class that has inherited
datatable and I get the following Error!
frmSearchText.btnSearch_Click Import Row System.Data.DataRow
System.InvalidCastException: Cannot cast from source type to destination
type.
at System.Data.Common.Int32DataContainer.DoCopyValue
(System.Data.Common.DataContainer from, Int32 from_index, Int32 to_index)
[0x00000] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/DataContainer.cs:528
at System.Data.Common.DataContainer.CopyValue
(System.Data.Common.DataContainer from, Int32 from_index, Int32 to_index)
[0x00000] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/DataContainer.cs:164
at System.Data.Common.RecordCache.CopyRecord (System.Data.DataTable
fromTable, Int32 fromRecordIndex, Int32 toRecordIndex) [0x0004a] in
/usr/src/packages/BUILD/mono-2.2/mcs/class/System.Data/System.Data.Common/RecordCache.cs:115
without mono this works fine! What can I do?
Hans
--
View this message in context: http://www.nabble.com/Mono-crash-on-calling-datatable.importrow-tp22767130p22767130.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list