[Mono-list] Mono crash on filling datatable

J.M. G jhmgbl2 at t-online.de
Mon Mar 23 11:22:19 EDT 2009


Hallo! I get the following error when filling a datatable from an SQLite
datasource (with mono.sqlite). I am using Ubuntu 8.04 with mono 1.9.1.
On windows the code works fine!
<code>
Unhandled Exception: System.ApplicationException: clsDBRep.FillDSRepT
Error! ---> System.Exception: Error Fill dtMedikamente! --->
System.EntryPointNotFoundException: sqlite3_column_origin_name
  at (wrapper managed-to-native)
Mono.Data.Sqlite.UnsafeNativeMethods:sqlite3_column_origin_name
(intptr,int)
  at Mono.Data.Sqlite.Sqlite3.ColumnOriginalName
(Mono.Data.Sqlite.SqliteStatement stmt, Int32 index) [0x00000] 
  at Mono.Data.Sqlite.SqliteDataReader.GetSchemaTable (Boolean
wantUniqueInfo, Boolean wantDefaultValue) [0x00000] 
  at Mono.Data.Sqlite.SqliteDataReader.GetSchemaTable () [0x00000] 
  at System.Data.Common.DataAdapter.BuildSchema (IDataReader reader,
System.Data.DataTable table, SchemaType schemaType, MissingSchemaAction
missingSchAction, MissingMappingAction missingMapAction,
System.Data.Common.DataTableMappingCollection dtMapping) [0x00000] 
  at System.Data.Common.DataAdapter.BuildSchema (IDataReader reader,
System.Data.DataTable table, SchemaType schemaType) [0x00000] 
  at System.Data.Common.DataAdapter.FillTable (System.Data.DataTable
dataTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords,
System.Int32& counter) [0x00000] 
  at System.Data.Common.DataAdapter.FillInternal (System.Data.DataTable
dataTable, IDataReader dataReader) [0x00000] 
  at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable
dataTable, IDataReader dataReader) [0x00000] 
  at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable
dataTable, IDbCommand command, CommandBehavior behavior) [0x00000] 
  at System.Data.Common.DbDataAdapter.Fill (System.Data.DataTable
dataTable) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Data.Common.DbDataAdapter:Fill (System.Data.DataTable)
  at Repetit.net.T.Mono.dsRepTableAdapters.MedikamenteTableAdapter.Fill
(Repetit.net.T.Mono.MedikamenteDataTable dataTable) [0x00000] 
  at Repetit.net.T.Mono.clsDBRep.FillDSREPT () [0x00000] --- End of
inner exception stack trace ---

  at Repetit.net.T.Mono.clsDBRep.FillDSREPT () [0x00000] --- End of
inner exception stack trace ---

  at Repetit.net.T.Mono.clsDBRep.FillDSREPT () [0x00000] 
  at Repetit.net.T.Mono.frmMain.OpenDatabase (System.String& FileName)
[0x00000] 
  at (wrapper remoting-invoke-with-check)
Repetit.net.T.Mono.frmMain:OpenDatabase (string&)
  at Repetit.net.T.Mono.frmMain.frmMain_Load (System.Object eventSender,
System.EventArgs eventArgs) [0x00000] 
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e)
[0x00000] 
  at System.Windows.Forms.Form.OnCreateControl () [0x00000] 
  at System.Windows.Forms.Control.CreateControl () [0x00000] 
  at System.Windows.Forms.Control.WmShowWindow
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&
m) [0x00000] 
  at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.ContainerControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m)
[0x00000] 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
IntPtr wParam, IntPtr lParam) [0x00000] 
  at System.Windows.Forms.XplatUIX11.SendMessage (IntPtr hwnd, Msg
message, IntPtr wParam, IntPtr lParam) [0x00000] 
  at System.Windows.Forms.XplatUIX11.MapWindow
(System.Windows.Forms.Hwnd hwnd, WindowType windows) [0x00000] 
  at System.Windows.Forms.XplatUIX11.CreateWindow
(System.Windows.Forms.CreateParams cp) [0x00000] 
  at System.Windows.Forms.XplatUI.CreateWindow
(System.Windows.Forms.CreateParams cp) [0x00000] 
  at System.Windows.Forms.NativeWindow.CreateHandle
(System.Windows.Forms.CreateParams create_params) [0x00000] 
  at System.Windows.Forms.Control.CreateHandle () [0x00000] 
  at System.Windows.Forms.Form.CreateHandle () [0x00000] 
  at System.Windows.Forms.Control.CreateControl () [0x00000] 
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value)
[0x00000] 
  at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] 
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:set_Visible (bool)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
mainForm) [0x00000] 
  at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] 
  at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] 
  at Repetit.net.T.Mono.My.MyApplication.Main (System.String[] Args)
[0x00000]
</code>

Regards

Hans



More information about the Mono-list mailing list