The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

VistaDB - Big Bad Bug???

Last post 09-02-2008, 3:59 AM by Mike.Griffin. 8 replies.
Sort Posts: Previous Next
  •  08-28-2008, 1:47 PM 11014

    VistaDB - Big Bad Bug???

    Right, I've come across a big problem, but I dont know if it's an ES problem, a VDB problem, or my problem.

    Basically, I tried to save a record with a column called "Actioned" (Char 1) with the data '-1'. Obviously that's two characters so the saved failed.

    My try/catch caught the exception, so I preceeded to re-fire my code, and I get this exception when trying to load a query:

    Error 101 (Provider v. 3.3.1.57): Cannot open data storage or file:  Program Files\iVirtualDocket\Database\iVirtualDocket.vdb3
    Error 117 (Provider v. 3.3.1.57): Cannot open database:  Program Files\iVirtualDocket\Database\iVirtualDocket.vdb3

    Any ideas how to fix this? Who's problem is it? Here is my code that causes the above error, althrough any collection load has the same issue.

     

    Code:
    1    
    2                m_BreakIns.Query.Where(m_BreakIns.Query.Actioned.Equal("0"));
    3                m_BreakIns.Query.Load();
    

     

    Restarting the application fixes the bug and it's 100% reproduceable.


    Current Projects:
    iVirtualDocket | iWontRemember
  •  08-28-2008, 4:07 PM 11021 in reply to 11014

    Re: VistaDB - Big Bad Bug???

    We will push our beta this weekend, just hang on for like two more days. I will fire up our VistaDB CF demo and really play with it. We do have an aweful lot of SQL CF developers that haven't had any such issues. Again, the beta is going to take care of this and your timings I'm sure.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  08-28-2008, 11:30 PM 11027 in reply to 11021

    Re: VistaDB - Big Bad Bug???

    I have no issues with SQL CE, unfortunately I just seem to have issues with VistaDB at the moment.

    Cant wait to get the beta! If you need my database or anything to test, then I can provide it.


    Current Projects:
    iVirtualDocket | iWontRemember
  •  08-31-2008, 8:01 AM 11054 in reply to 11027

    Re: VistaDB - Big Bad Bug???

    We posted a new beta this morning, see the post in the forums about it before upgrading however.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  09-01-2008, 2:05 AM 11062 in reply to 11054

    Re: VistaDB - Big Bad Bug???

    The bug is still present, ignore my post in the beta thread.

    The error is the same as above (different project). All the DLLs are version 2008.1.831.0.

    "Error 117 (Provider v. 3.3.1.57): Cannot open database:  \\Program Files\\Logger\\Database\\#Hidden#.vdb3"

    Here is my stack trace:

    "at VistaDB.Engine.Internal.DirectConnection.OpenDatabase()          at VistaDB.Engine.Internal.DirectConnection.OpenDatabase()          at VistaDB.Engine.Internal.LocalSQLConnection.OpenDatabase()          at VistaDB.Provider.VistaDBConnection.Open()          at EntitySpaces.Interfaces.esTransactionScope.Enlist()          at EntitySpaces.VistaDBProvider.CF.DataProvider.LoadDataTableForDynamicQuery()          at EntitySpaces.VistaDBProvider.CF.DataProvider.EntitySpaces.Interfaces.IDataProvider.esLoadDataTable()          at EntitySpaces.Interfaces.esDataProvider.esLoadDataTable()          at EntitySpaces.Interfaces.esDynamicQuery.Load()          at EntitySpaces.Core.esEntityCollection.LoadAll()          at #Hidden#.fAssetSelection.LoadAssetTypes()          at #Hidden#.fAssetSelection.Initialise()          at #Hidden#.fMain.GetAssetId()          at #Hidden#.fMain.ShowReview()          at #Hidden#.fMain.btnReview_ImageButtonClicked()          at Tmsss.Pda.Controls.ImageButton.ImageButton.ClickEvent()          at System.Windows.Forms.Control.OnClick()          at System.Windows.Forms.Control.WnProc()          at System.Windows.Forms.Control._InternalWnProc()          at Microsoft.AGL.Forms.EVL.EnterMainLoop()          at System.Windows.Forms.Application.Run()          at #Hidden#.Program.Main()          "

     

    Edit:

    From the testing I've done, the only explanation I can think is that you're not closing the connection after an exception in a database command. This means that when I come to reload something after an exception, the application falls over as it cant get exclusivity to the database. The connection property on the connectionstring must be in Exclusive Read or Write mode. Is there any way to force the database close, or do you need to release a new version?

    I might be completely wrong, but this app needs to be finished today, so any help is greatly appreciated. Thanks.

     


    Current Projects:
    iVirtualDocket | iWontRemember
  •  09-01-2008, 7:06 AM 11073 in reply to 11062

    Re: VistaDB - Big Bad Bug???

    I'm going to repro this right now and see what I come up with. Are you saving via a collection or single entity?

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  09-01-2008, 7:33 AM 11074 in reply to 11073

    Re: VistaDB - Big Bad Bug???

    Okay, download the same beta from our download forums, the .zip has been replaced. Please let me know your findings.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  09-02-2008, 2:10 AM 11081 in reply to 11074

    Re: VistaDB - Big Bad Bug???

    Thanks Mike, that's fixed it!

    What was it?


    Current Projects:
    iVirtualDocket | iWontRemember
  •  09-02-2008, 3:59 AM 11083 in reply to 11081

    Re: VistaDB - Big Bad Bug???

    I had to put some try/finally's around our connection enlistment logic. This is excellent, we are much faster now and totally bullet proof.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML