Menu

berkeley db(C# API)

Help
manvendra
2007-07-18
2013-04-09
  • manvendra

    manvendra - 2007-07-18

    hi my name is manu i m using the berkeley db for .net 2.0.
    well i had completed all functionality but trying to search for a specific key and the dbget() and ItemAt();
    does not working have u any idea about what can i do for searching a key value from the berkeley file

     
    • Karl Waclawek

      Karl Waclawek - 2007-07-18

      Show me a small piece of code where you first insert an item and then you can't find it.

       
    • manvendra

      manvendra - 2007-07-21

      thanks for ur mail

      hi carl watson the sample code is

      first i used a cursor
      dbbtreecursor dbt=dbs.fmt.databasebtree.opencuresor(null,flag.none)
      foreach(keydatapair entry in dbt.itemsat( null, ref keyentry) )
      {
      coding for extracting key & value from entry
      }

      by using watch execution i have find that the value is fount but not add in entry variable

      but now i have the solution i used GetAt() method instead than dbtreecursor.itemsat()

      Thanks & Regard
      manvendra chaudhary

       
      • Karl Waclawek

        Karl Waclawek - 2007-07-21

        This could be a bug. Could you please e-mail the source of a short program to kwaclaw@users.sourceforge.net. This program should show the error, so that I can fix it.

        Thanks,

        Karl

         
    • Eric  Hass

      Eric Hass - 2009-05-22

      Hi All,

      I am new to Berkley Db and tried to configure it in my application which is developed in C#.Net.

      I have downloaded libdb-dotnet_0_95 solution which is for C# .net.

      After compiling the solution, it produced following assemblies:

      libdb_dotNET43.dll,
      libdb_dotNET45.dll,
      Kds.Serialization.dll,
      BerkeleyDb.Utils43.dll,
      BerkeleyDb.Utils45.dll

      After adding these references in my application , i created a database handler.

      But at run time it throws an error stating,

      Unable to load DLL 'libdb45.dll'.

      but this dll was not created while building the source code.

      Can any body help me as where can i find this dll as it is crucial for my application.

      Any help will be appreciated.

      yours,
      Eric Hass.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.