[Mono-list] Mono crash on filling datatable

Hans-Martin jhmgbl2 at t-online.de
Mon Mar 30 11:03:25 EDT 2009


Hallo!

This bug was solved already! It was due to the fact that I had compiled sqlite3.so from the newest source and the entry point sqlite3_column_origin_name was missing in this .so. After uninstalling this version and reinstalling the one that came with Ubuntu 8.04 the code worked fine except for some more errors I posted recently.

Regards

Hans

P.S. What makes debugging vb9 applications under mono so difficult is that the ApplicationFramework (ApplicationEvents.vb) is not called when an error occurs, so the application crashes on every Error and that the codeline is not shown in the error message. I am actually trying to write an AddIn that makes Error code for every procedure.

My application is Open Source. You can download it at repetitnettsqli.sourceforge.net 

> -----Ursprüngliche Nachricht-----
> Von: Veerapuram Varadhan [mailto:vvaradhan at novell.com]
> Gesendet: Montag, 30. März 2009 14:25
> An: Hans-Martin
> Cc: Nagappan A; mono-list at lists.ximian.com
> Betreff: Re: [Mono-list] Mono crash on filling datatable
> 
> 
> Hello Hans,
> 
> Can you file a bug in bugzilla.novell.com under Mono/System.Data along
> with a small test program that can reproduce the bug?
> 
> TIA,
> 
> V. Varadhan
> 
> On Mon, 2009-03-23 at 17:48 +0100, Hans-Martin wrote:
> > Hallo Nagapan!
> >  
> > I had installed mono 2.2 before, but with the same error. I had
> > compiled mono 2.2 from source, but I thought there might be a problem
> > with ubuntu, so I switched to the code in the repository. And normally
> > I run the application with option --debug, but there is no difference
> > in the error message. When I had the 2.2. compiled version, the Error
> > message showed also the code lines, where the error occured. I will
> > install 2.2 again and send you the Error message.
> >  
> > Regards 
> >  
> > Hans
> >         -----Ursprüngliche Nachricht-----
> >         Von: Nagappan A [mailto:nagappan at gmail.com]
> >         Gesendet: Montag, 23. März 2009 17:08
> >         An: J.M. G
> >         Cc: mono-list at lists.ximian.com
> >         Betreff: Re: [Mono-list] Mono crash on filling datatable
> >         
> >         
> >         Hello Hans,
> >         
> >         On Mon, Mar 23, 2009 at 8:22 AM, J.M. G <jhmgbl2 at t-online.de>
> >         wrote:
> >                 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!
> >         
> >         Could you please try with latest released Mono ? Lots of bug
> >         has been fixed with Mono 2.2.
> >         
> >         Also can you provide stack trace with debugging symbols.
> >         Generally I run like this: "mono --debug application.exe"
> >         
> >         Thanks
> >         Nagappan 
> >         
> >                 
> >                 <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.WindowsFormsApplicationB
> ase.OnRun () [0x00000]
> >                  at
> >                 
> Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationB
> ase.Run (System.String[] commandLine) [0x00000]
> >                  at Repetit.net.T.Mono.My.MyApplication.Main
> >                 (System.String[] Args)
> >                 [0x00000]
> >                 </code>
> >                 
> >                 Regards
> >                 
> >                 Hans
> >                 
> >                 _______________________________________________
> >                 Mono-list maillist  -  Mono-list at lists.ximian.com
> >                 http://lists.ximian.com/mailman/listinfo/mono-list
> >         
> >         
> >         
> >         -- 
> >         Linux Desktop (GUI Application) Testing Project -
> >         http://ldtp.freedesktop.org
> >         http://nagappanal.blogspot.com
> > _______________________________________________
> > Mono-list maillist  -  Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
> 



More information about the Mono-list mailing list