How to use berkeley-db on 64bit windows?

Hi,
I'm using berkeley-db5.0.21 with C# wrapper in my application, it works fine on 32bit windows. However, when I tried my app on 64bit windows, it came with the error:
The type initializer to System.TypeInitializationException: “BerkeleyDB.Internal.libdb_csharpPINVOKE” threw an exception. ---> System.TypeInitializationException: The type initializer to “SWIGStringHelper” threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x8007000B)
At BerkeleyDB.Internal.libdb_csharpPINVOKE.SWIGStringHelper.SWIGRegisterStringCallback_libdb_csharp(SWIGStringDelegate stringDelegate)
At BerkeleyDB.Internal.libdb_csharpPINVOKE.SWIGStringHelper..ctor()
At BerkeleyDB.Internal.libdb_csharpPINVOKE..cctor() At C:\Users\gmf\hg\db-5.0.21\csharp\Internal\libdb_csharpPINVOKE.cs:line 33
At BerkeleyDB.Internal.libdb_csharpPINVOKE.new_DB(HandleRef jarg1, UInt32 jarg2)
At BerkeleyDB.Internal.DB..ctor(DB_ENV env, UInt32 flags) At C:\Users\gmf\hg\db-5.0.21\csharp\Internal\DB.cs:line 109
At BerkeleyDB.BaseDatabase..ctor(DatabaseEnvironment envp, UInt32 flags) At C:\Users\gmf\hg\db-5.0.21\csharp\BaseDatabase.cs:line 35
At BerkeleyDB.BTreeDatabase..ctor(DatabaseEnvironment env, UInt32 flags) At C:\Users\gmf\hg\db-5.0.21\csharp\BTreeDatabase.cs:line 30
This should be normal because the installed bdb is 32bit by default. Then I re-built Berkeley DB(build_windows\BDB_dotNet.sln) to x64, and copied the built "libdb50d.dll, libdb_csharp50d.dll"(removed the last "d" char) to the installation directory to replace the original dlls and rerun my app, but still failed with the different error:
The type initializer to System.TypeInitializationException: “BerkeleyDB.Internal.libdb_csharpPINVOKE” threw an exception。 ---> System.TypeInitializationException: The type initializer to “SWIGStringHelper” threw an exception. ---> System.DllNotFoundException: Could not load file or assembly “libdb_csharp50”: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT:0x800736B1)。
At BerkeleyDB.Internal.libdb_csharpPINVOKE.SWIGStringHelper.SWIGRegisterStringCallback_libdb_csharp(SWIGStringDelegate stringDelegate)
At BerkeleyDB.Internal.libdb_csharpPINVOKE.SWIGStringHelper..ctor()
At BerkeleyDB.Internal.libdb_csharpPINVOKE..cctor() At C:\Users\gmf\hg\db-5.0.21\csharp\Internal\libdb_csharpPINVOKE.cs:line 33
At BerkeleyDB.Internal.libdb_csharpPINVOKE.new_DB(HandleRef jarg1, UInt32 jarg2)
At BerkeleyDB.Internal.DB..ctor(DB_ENV env, UInt32 flags)At C:\Users\gmf\hg\db-5.0.21\csharp\Internal\DB.cs:line 109
At BerkeleyDB.BaseDatabase..ctor(DatabaseEnvironment envp, UInt32 flags) At C:\Users\gmf\hg\db-5.0.21\csharp\BaseDatabase.cs:line 35
At BerkeleyDB.BTreeDatabase..ctor(DatabaseEnvironment env, UInt32 flags) At C:\Users\gmf\hg\db-5.0.21\csharp\BTreeDatabase.cs:line 30
At BerkeleyDB.BTreeDatabase.Open(String Filename, String DatabaseName, BTreeDatabaseConfig cfg, Transaction txn) At C:\Users\gmf\hg\db-5.0.21\csharp\BTreeDatabase.cs:line 229
Am I doing something wrong with the build of x64 version? Or is there other steps needed to do to use x64 bdb? Any help is appreciated.

My x86 hardware: Intel E7500 Dual CPU @2.93G Hz, 2GB RAM.
My x64 hardware: Intel Xeon E5504 @2.00G Hz, 16GB RAM
I ran two tests separately in x86 & x64, the page size of bdb is both 8KB, cache size is both 128KB.
1. Pure insert.
Inserts 200,000 items of data(each data value is about 64 bytes large).
x86: 5.01s
x64: 5.54s
2. Business logic related. The application gets data from mysql db, does some business-related operation, and inserts the data to bdb.
x86: 10,000 rows of data/s.
x64: 6,500 rows of data/s.
The factor of network cost to mysql can be ignored, and the assemblies used in x64 are release build.

Similar Messages

  • How to use dual monitor display in windows 7 using MSTSC command.......??????

    how to use dual monitor display in windows 7 using MSTSC command ....?????

    Hi Anurag,
    The main issue is how to use the dual monitor in the Remote Desktop Session in Windows 7 ,right ?
    please refer to the following links:
    Using Multiple Monitors in Remote Desktop Session
    http://blogs.msdn.com/b/rds/archive/2009/07/01/using-multiple-monitors-in-remote-desktop-session.aspx
    Best regards

  • How to use adobe 5.0 on windows 7 to install 2 upgrades.

    how to use adobe 5.0 on windows 7 to install 2 upgrades.

    Keith you maybe facing an issue with trying to install Photoshop CS2 on Windows 7 in general.  If you have both serial numbers registered, and one of them is a full version, then you can request that your software be unlocked to allow for installation.  Our support team will better be able to determine your eligibility for this.  You can contact them via chat at http://adobe.ly/yxj0t6.

  • I had nokia n8 and now i want to transfer my contacts from nokia to my new i phone 5, i set up i tune and i cloud account but i don't know how to use do it. i have windows 7 and no outlook

    i had nokia n8 and now i want to transfer my contacts from nokia to my new i phone 5, i set up i tune and i cloud account but i don't know how to use do it. i have windows 7 and no outlook

    If I wiped my phone I wouldn't have the contacts on my phone to send to my self.    I would need to take just the contacts from my back up. I would have to do this through iTunes and I don't see how I can just extract the contacts only from my back up. From what I can figure out it is all or nothing

  • How to use Berkeley DB in an application without installing

    I'm using Berkeley DB in a python project, and I am wondering if I can make the libraries available to python without specifically installing berkeley DB.
    How can you embed Berkeley DB in an application generally?
    Has anyone done this with python and bsddb3?
    Thank you
    Sachi.

    The python BDB libraries are maintained independently of Oracle.  You will probably have more success asking this question on the BDB python mailing list at https://mailman.jcea.es/listinfo/pybsddb
    Lauren Foutz

  • Qosmio F50-125 - How to use TV-FM Tuner in Windows 7

    Hello,
    I am using Qosmio F50-125 and I just upgraded to Windows 7.
    I just now found out that I have a TV tuner on my notebook and I dont know how to use it.
    First I dont have drivers for my TV tuner and tried to download something like TV-tuner driver v.2.3.3.31 from the toshiba website, but there is not a typical setup.exe but just some files inside.
    If you could tell me a bit more about how to use my TV option and how to install the proper drivers I would be truly grateful.
    Thanks in advance!

    Hi mate,
    Friend of me has also Qosmio F50 with TV Tuner and Windows 7 now. As far as I know the posted instructions from the other users are correct.
    First you have to extract all files. Then go in device manager and right click on the TV card (I think its marked with yellow exclamation mark). If you right click choose Update Driver and in next windows choose the advanced installation (second point). Now you have to choose the driver directory yourself and navigate to the folder where you have extracted the files. Click on OK, Next, etc. and the driver should be installed properly.
    Maybe you to restart the notebook but this shouldnt be a problem! ;)
    If you have more questions, please let us know! If you need more assistance I can ask my friend again for further details.

  • How do use startdard function key in windows?

    I found out from the internet how to use function keys without pressing Fn key by configuring preference. However I need to do the same thing in windows (I am running windows XP on the same laptop).
    Anyone knows how to? I can not figure it out.

    Have you installed all the necessary Boot Camp drivers for Windows?

  • How to use Remote Desktop Service in Windows Azure

    Good day
    Hi! im kinda newbie when it comes to windows azure, I would like to ask if how can we use the RDS CAL in windows azure?

    Hi,
    Please visit the URL below for detailed instructions on using/configuring RDS CAL.
    http://blogs.technet.com/b/keithmayer/archive/2013/09/04/step-by-step-remote-desktop-services-on-windows-azure-a-cost-effective-alternative-to-desktop-as-a-service-part-2.aspx
    Regards

  • How to use the FP 3000 with windows XP?

    Hi to all,
    Actually I have a problem using My FP-3000 nifbus with a windows xp proffetional station.
    previously I was using it with nifbus configurator and communication manager, both of version 2.3 and then I upgraded to 2.3.6 (using windows 2000) and now I am trying to use it with windows xp, but the configurator does not communicate with fp-3000 and it doesn't show any function blocks.
    I started by installing the 2.3 configurator and manager, but the PCMCIA fbus/2 card that I'm using was not recognised by windows.
    so I upgraded to 2.3.6, the pcmcia card was now recognised by windows but the communication manager kept giving a communication error.
    so I installed the communication manager version 3.0, which started successfu
    lly and the configurator started but the fp-3000 was not present.
    I tried updating the firmware, but the upgrade.exe did not disfunctioned and gave strange module names in the window, and it did not download the firmware.
    I also tried resetting the fp-3000 but still no luck.
    so any one can tell me what software and what versions should I use to overcome this problem?

    It sounds like a problem of advanced network parameter settings.
    You can start "Interface Configuration Utility", choose the port and select "Edit", then choose "Advanced..." button to have "Advanced Stack Configuration" dialog.
    Change values to:
    T1 0x40000,
    T2 0x40000,
    T3 0x30000,
    Slot Time 5
    Click OK to close "Interface Configuration Utility", and run NI-FBUS CM or Configurator to check whether it helps.
    If you have 3.0 or 3.1 version, you just choose the "Old Default" button to set the values automatically.

  • How to use iMac to work with windows computers like pcAnywhere?

    I just bought my first iMac, and love it. I run pcAnywhere (version 12.1) on a few windows computers for work, but need to connect to them via my new iMac and using a phone line modem.  How do I do this; and I am fairly new to Mac.  I have tried to install the pcAnywhere on my Mac, using pcAnywhere Cross Platform, but it will not connect at all and the error code I get is below:
    You can't open the application "pcAnywhere CrossPlatform" because PowerPC applications are no longer supported.
    It took me over an hour to get it installed, via java downloads.  I connect on my old PC's with a phone number to connect via the modem because where I am connecting to has no Internet other than a phone line.
    Please help!!

    The PCAnywhere application you are trying to run is too old to be supported on a Mac running Lion, Mountain Lion, or any newer MacOS.  I would check to see if PCAnywhere has released an updated version of the application that you can use.  If not, you will probably need to go the route of virtualization (or keep an old PC around for supporting work).
    If you have to use virtualization, then you might want to consider using Virtual Box (a free app) to install Windows 7 on a virtual PC, then just run the PC version of your PCAnywhere software just like you would on any other PC.  You could use Virtual Box to install a MacOS 10.6.8 (Snow Leopard) instance and run your existing Mac version of the PCAnywhere software, but you would probably be better off to just use the Windows version.

  • How to use my time capsule with windows vista

    i have a 2tb time capsule iphone 3gs appple tv and a ipad 2 the wife and kids have iphone 3gs and 4 and id like to set up a home network for us all to use and share music and photos is this possible

    Sorry the title never gets into detail at any point.. no vista computer is listed.
    Access the vista computer to TC turn on the guest network and allow full read write access. Make sure you have the workgroup set correctly. There are issues sometimes on the windows side but try that.
    As for using the TC as a file store.. well it isn't a good idea. It is a backup device.. which has no ability to back up itself. There is no mirrored disks and one day it will die and you can say bye bye to your precious photos and music. You can work your way around the issue.. sure.. in the end you will need an alternative backup on a computer.. that alternative backup will then be backed up to where??
    If you must run your itunes and iphoto library on the TC just read about how to set up the libraries in network location. Google will find the posts.
    http://gigaom.com/apple/using-time-capsule-as-a-media-drive/
    You perhaps should read all the other posts about why not.. as well as how to.

  • How to use sd card drive on Windows 7 partition.

    I have a 15" Mac Book Pro Model A1318 about a year old.  I am running Windows 7 on the partition and the SD Card will not recognize the card.  It works when running Mac Snow Leopard.

    You use it the same way you do in Snow Leopard. How is the card formatted? If it is formatted for Snow Leopard then Windows can not use it.

  • How to use .sdf database in a windows store apps

    Hi,
    I am new in windows store app development. I have been working in WPF application development for long time. Now I want develop windows store apps. I am studying on it. I got a problem. I what to store data from windows store app in .sdf database file. I
    confused is .sdf database is compatible with windows store apps.
    I want Deploy the apps in windows apps store. Is .sdf database support in client machine while he download it and run his own machine.
    Please Suggest me about it with sample reference. It will be very helpful for me.
    bye
    With Regards
    Sadequzzaman Monoj
    Bangladesh

    SDF files are used by Microsoft SQL Server Compact Edition. SQL CE is not supported for Windows Store Apps/Universal Apps. Only WP Silverlight Apps can use SQL CE. You will have to switch to a different database format.
    As far as I know the only DB currently supported for local deployment with Windows Store Apps is SQLite.
    This article gives an introduction on how to get started with SQLite in Universal Apps:
    http://blog.tpcware.com/2014/04/universal-app-with-sqlite-part-1/

  • How to use multi async method in Windows Runtime Component (C#)

    I want to migrate an async method into Windows Runtime Component.
    CookieContainer cc = await utility.GetCookieContainer();
    But the content of async method still contains async methods.
    public async Task<CookieContainer> GetCookieContainer()
    if (stsAuthToken != null)
    if (DateTime.Now > stsAuthToken.Expires)
    this.stsAuthToken = await GetMsoStsSAMLToken();
    AuthCookies cookies = await GetAuthCookies(this.stsAuthToken);
    CookieContainer cc = new CookieContainer();
    Cookie samlAuthCookie = new Cookie("FedAuth", cookies.FedAuth)
    Path = "/",
    Expires = this.stsAuthToken.Expires,
    Secure = cookies.Host.Scheme.Equals("https"),
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(this.spSiteUrl, samlAuthCookie);
    Cookie rtFACookie = new Cookie("rtFA", cookies.RtFA)
    Path = "/",
    Expires = this.stsAuthToken.Expires,
    Secure = cookies.Host.Scheme.Equals("https"),
    HttpOnly = true,
    Domain = cookies.Host.Host
    cc.Add(this.spSiteUrl, rtFACookie);
    this.cookieContainer = cc;
    And even GetMsoStsSAMLToken and GetAuthCookies contain async methods...
    How to migrate it?

    Hi Matt,
    I'm sorry for my unclear description.
    My WinRT Component is for Javascript. If I use folloiong codes, error occurs.
    public static async Task<bool> GetInternal(string url, string username, string password)
    bool r = await AuthUtility.Create(new Uri(url), username, password);
    return r;
    The error is
    SharePointWindowsRuntimeComponent.Common.GetInternal(System.String, System.String, System.String)' has a parameter of type 'System.Threading.Tasks.Task<System.Boolean>' in its signature. Although this generic type is not a valid Windows Runtime type,
    the type or its generic parameters implement interfaces that are valid Windows Runtime types.  Consider changing the type 'Task' in the method signature to one of the following types instead: Windows.Foundation.IAsyncAction, Windows.Foundation.IAsyncOperation,
    or one of the other Windows Runtime async interfaces. The standard .NET awaiter pattern also applies when consuming Windows Runtime async interfaces. Please see System.Runtime.InteropServices.WindowsRuntime.AsyncInfo for more information about converting managed
    task objects to Windows Runtime async interfaces.
    Some articles said, Task<T> is not WinRT type and should be converted to IAsyncOperation<T>. Only stirng, int, bool, object, array of above types and some 'simple' type can be used. (The
    related article)
    Then I try to convert Task<bool>, but the codes don't work.
    Above is why I ask this question.
    If async method can be used in WinRT component directly, please let me know why I got above error.
    Thanks.

  • How to use Enterprise Data Protection in Windows 10 ?

    I have installed Windows 10 technical preview for Enterprise on my machine. one of the goals is to explore the "Enterprise Data protection" feature in Windows 10. However, I am unable find any way to use this feature. Is this feature
    part of the preview ? If yes, how can I use this ? If no then by when is it expected to have this feature in preview ?
    Thanks
    Regards, Salil

    Can someone from Microsoft please reply ?
    Thanks
    Regards, Salil

Maybe you are looking for