We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Getting error in App.g.i.cs when loading my graphs in my app

Here is my code using sqllite
 public ObservableCollection<DbManager> Break;
        //public List<DbManager> Break1;
        string path;
        SQLite.Net.SQLiteConnection conn;
        public GraphPage()
            //Break1 = Breakfast.GetBreak();
            path = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "db.sqlite");
            conn = new SQLite.Net.SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), path);
            var query1 = conn.Table<DbManager>().Where(c => c.Reading == "Breakfast");
            string result1 = String.Empty;
            foreach (var item1 in query1)
               Break.Add(new DbManager { Glucose = item1.Glucose, Date = item1.Date });
            Break = new ObservableCollection<DbManager>();
            DataContext = this;
And the error in App.g.i.cs is:
            UnhandledException += (sender, e) =>
                if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();

1 Reply

SJ Sumathi Jayaraj Syncfusion Team February 26, 2016 10:05 AM UTC

Hi Bhavya,
Thanks for contacting Syncfusion Support.
Please share the stack trace or error log, and also provide us sample to replicate the reported issue. This would be helpful for us to provide you the better solution.
Sumathi J

Live Chat Icon For mobile
Up arrow icon