C# Wrapper for Berkeley Db is not ptting proper key and data values

Hi All,
I am using C# wrapper for Berkeley Db which is available at sourceforge.net.
Now when i am putting an integer as key value, it returns keysize as 9,
instead of returning 4.
That C# Wrapper contains a serialzing class called BDBFormatter which pass all the data into DBT .
The file created using C# Wrapper is not read as key and data values are not coming properly if i try to read the file using only C berkeley db.
Can anybody suggest me some way to create a berkeley Db file in C#. which can be accessible by Linux C berkeley Db APIs.
Any help will be appreciated.....
Thanks,
Eric Hass

user11218092 wrote:
Hi All,
I am using C# wrapper for Berkeley Db which is available at sourceforge.net.
Now when i am putting an integer as key value, it returns keysize as 9,
instead of returning 4.
That C# Wrapper contains a serialzing class called BDBFormatter which pass all the data into DBT .
The file created using C# Wrapper is not read as key and data values are not coming properly if i try to read the file using only C berkeley db.
How data is encoded is up to the programmer. There is no defined way in BDB to do that, it is application dependent.
The BDBFormatter class is just one way of encoding C# classes and structs (which includes the ability to serialize Nulls).
It is written with BDB in mind and has some performance advantages over the standard .NET serialization classes.
If you want to read back the data from code written in another language, you will have to duplicate how data is encoded/decoded.
The source code is there to read. ;-)
Karl

Similar Messages

  • I'm using the sync option for when I'm not near my desktop and no matter what it won't work its telling me my account name or password is not correct and it is!

    I'm using the sync option for when I'm not near my desktop and no matter what it won't work its telling me my account name or password is not correct and it is!

    This is from my personal experience:
    It almost happens every time I tried to connect with Sync from my Android phone, the window asking me to enter my account name and password always shows up. And if I enter the information, it'll say I have the wrong password, etc. My workaround is to click the "cancel" button. But it does not cancel immediately. The window will stay on for a while (usually a few minutes), then it'll disappear and start connecting to Sync. And it'll connect and sync successfully.
    You can try this workaround but you have to be patient to wait for the window to disappear.
    I don't know what is the cause of this, but it has happened ever since FF4 for Mobile came out. I have searched around and couldn't find any solutions.

  • How to avoid the Amount and Date values for VOID Cheques

    Hi All,
    I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
    Can any one tel me how to avoid the Amount and Date values for VOID Cheques
    Your help will be greatly appreciated.
    Regards
    Yathish

    Hi,
    I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
    If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
    Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
    Regards
    Subramanian

  • Why my iphone screen can not open the key and can not enter the menu

    why my iphone screen can not open the key and can not enter the menu

    Your issue is not clear - are you saying your phone is disabled and/or you forgot the passcode?
    http://support.apple.com/kb/ht1212

  • "Request for Reporting available " is not displayed after loading the data.

    Hi
    A DSO feeds the data to a cube and DSO. In dso reporting sysmbol is present. However in the cube "Request for Reporting available " is not present in the manage tab of the cube.
    Please advise on this.
    Regards
    loyee

    Hi,
    What is the status in Monitor. If it is ok, go to manage of the infocube,
    in that screen on the menu, Environment --> Automatic Request processing. Then you will get three check boxes.
    Click the first check box, (Set Quality status to OK). If you aggregates,  choose second box.
    Hope this helps.
    Regards,
    Rama Murthy.

  • I had a name for my user name not an email address and now I cannot get access to my itunes account

    I had a simple user name through the itunes store. It was just a name not an email address, now when I sign in it sends me to an old itunes account which does not recognize purchases that I have made over  the last 5 years.
    Any clue as to how I can access my old account again? I tried asking the system to send me a password with my username (which is not an email address) and have yet to see an email that was on flie with that address.
    Any help would be appreciated
    Thank you.

    Have you tried calling?
    1-800-MY-APPLE (1-800-692-7753)

  • How to get rid of extra data in character buffers for key and data

    Hi -
    Using the C API, I am using a cursor to just pull all the key/value pairs from a database.
    Here is the relevant code:
    /* Initialize key/data structures. */
    memset(&key, 0, sizeof(key));
    memset(&data, 0, sizeof(data));
    key.flags = DB_DBT_MALLOC;
    data.flags = DB_DBT_MALLOC;
    if((ret = dbp->cursor(dbp, NULL, &cursor, 0)) != 0) {
    dbp->err(dbp, ret, "%s", DATABASE);
    goto err;
    while((ret = cursor->c_get(cursor, &key, &data, DB_NEXT)) == 0) {
    fprintf(cgiOut, "%s|||%s\n", (char *)key.data, (char *)data.data);
    free(key.data);
    free(data.data);
    if(ret != DB_NOTFOUND) {
    dbp->err(dbp, ret, "cursor->c_get");
    goto err;
    This produces lines that in many cases contain extra characters at the ends, as though the malloced data was not being cleared before use. I wrote this routine originally in Java, and solved the problem there with the "setReuseBuffer(false)" Database Entry routine. Is there something similar in C?
    Garey Mills

    Sandra -
    I am using 4.5. I have solved the problem, however, by using the following code
    while((ret = cursor->c_get(cursor, &key, &data, DB_NEXT)) == 0) {
    char keyd, datad;
    keyd = (char *)key.data;
    datad = (char*)data.data;
    keyd[key.size] = '\0';
    datad[data.size] = '\0';
    So I am just using the size data returned to null terminate the strings in the buffers. Now everything works. Thanks for your response;
    Garey Mills

  • Keys will not work; comma key and and arrow keys..

    What can I do to make my arrow keys and comma keys work? I can not find any valuable material to help me with this.
    Any help will be much appreciated---Rossman

    Keyboard problems of this kind often occur because of liquid spills and the like , Rossman18. Any other people who have used this computer with a glass in their hand, or passing incontinent cats or mice? MBPs have liquid detection sensors built in, so Apple should be able to tell you if you aren't aware of such events yourself.
    Look, I know I'm being a bit cheeky and dismissive in the above, but assuming you are still under warranty and the problem wasn't caused by a liquid spill or other such physical damage, then just take it to Apple and get them to fix it for free. The hardware warranty last twelve months. We are all busy, but if the problem has been around for that long, and you still haven't had time to get it fixed, you can't need to use a comma or an arrow key very often!
    Cheers
    Rod

  • How to not make Tables, Column and Data Available in Excel

    Goal:
    Not displaying the dimension table and its data in excel
    Problem:
    I was enable to deny access for the user roles in SSAS about denying access the data from the column but the next thing is that I do not know how dimension table and column not to be available in the excel.
    Information:
    *The datasource is SSAS
    *I have made three user to have access to two tables only.

    Hi Sakura,
    According to your description, you want the Manager role can see all dimension table and its data column. And the Employee role can't view all table, column and data, right? Currently we don't have a direct option to complete hide the dimensions or attributes
    to some roles. However you can use workarounds below.
    Using cube perspectives and hide the cube dimension attribute then set the perspectives to role.
    Perspectives
    Use this workaround discussed in the similar thread below.
    Dimension attribute security to hide or unhide an attribute
    based on certain condition
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to save web service request key and response value in cache to reduce calling the service for same type of requests

    Hi
    I have a web service which return the response based on the request key.
    I need to save the key and the response value in cache for around 30mins
     to reduce the web service calls for better performance.
    Appreciate if any once can share a sample code

    using System.Runtime.Caching;
    public List<string> cachingwebserviceresponse()
    {//Create a cache key
    string strParameters = "1234";//Create a cache value holding object
    List<string> results = new List<string>();//Create a cache
    ObjectCache cache = MemoryCache.Default;//Assign key for the cache
    string cacheKey = strParameters;//Check whether the key exists in the cache//If exists assign the values from the cache instead of calling the webservice//else call the web service and add the response to the cache
    if (cache.Contains(cacheKey))
    results = cache.Get(cacheKey);
    else
    { //calling the web service client
    using (service.webservice fd = new service.webserviceContractClient())
    { //Call the web service function to get the results
    results = fd.DataSearch(strParameters);
    } //Create the cache expiration policy. I have created for 30 minutes.
    CacheItemPolicy cacheItemPolicy = new CacheItemPolicy();
    cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddMinutes(30); //Add the response to the cache based on the key
    cache.Add(cacheKey, results, cacheItemPolicy);
    return results;

  • How do I get my Adobe products back on new computer after not knowing the keys and codes

    I have recently purchased a new Windows 8 computer. My Windows 7 computer went wrong on the motherboard, so I can't get my license keys, product keys and serial numbers for this new computer.

    You can find details on how to locate your serial number under your account at http://forums.adobe.com/message/3987968#3987968?promoid=KBHJW.

  • "Key and Text" values in variable selection list for a field

    Hi,
          we have created the variable for the one of the navigation attributes of the "0customer" field .
          for the customer field in BEX settings we are having "Text" as display.
          for the navigation field in BEX settings we are having "Key" as display.
          while running the reports in the variable selection list for some reports we having both KEY and text for selection and for others only text are displayed,
        we have checked the BEX settings in field and query level there are same.
    Please help us here.

    Check the setting again in the Query level and then maku sure you save it. Come out of the query and then re-open the query and execute, you can see the chages in the output.

  • RoboHelp  for Word 7 is not saving the rtf and won't compile .hlp

    I use RoboHelp for Word 7 to produce WinHelp files. It's been working fine for several months on this computer.
    Just in the past week, I had an issue with my Word 2007 when trying to open a .doc file. I got the message that the converter nswrd632.wpc wasn't found. After searching on the Microsoft forums, I edited the registry and registered that converter.
    But now (and this may be unconnected to the Word converter message) RH won't save the .docx or .rtf file. Whenever I click Save All, nothing happens. When I click Exit Project, the message comes up about needing to save the files, and I click Yes to All. Nothing happens except the message closing. No files are saved and RH does not exit. The only way I can exit RH is to click No, which of course means my changes aren't saved. I can't save the .docx file through the Word menu, either.
    I also cannot compile the file. Again, no error message, just doesn't compile.
    I have searched the forums for RH for Word, with the result that I've reinstalled RH, made sure the RH add-ins are enabled, and deleted all the .dot files. Nothing is working. I went to Peter Grainge's Snippet 112 and followed the directions there--no change.
    I have found that after making my edits in the Word document, if I manually save the RTF file by going to the Word Save As directory, the edits will be saved and RH will compile the .hlp file - one time.
    Any ideas?

    Hi, I have a nearly identical problem, except my project uses .doc files instead of .rtf files. I was able to solve the "cannot save" problem by following the information below. I still have not resolved the "cannot compile" problem.
    I'm using Windows XP, RH7 Build 100, Office 2007. My project was created using Office 2003 and I did not experience any of these issues until I recently upgraded to Office 2007.
    This fix was sent to me by my group's "tech" guy.
    A number of Adobe RoboHelp for Word 7 users have reported that they cannot save changes or generate an output. The cause has been isolated to the RHComAdd.DLL being disabled.
    Check for that in Word:
    For versions up to 2003 go to Help | About | Disabled Items. If RHComAdd.DLL appears, re-enable it.
    For Word 2007, go to the Office Button | Word Options | Add-ins. Under "Manage" select Disabled Items and click Go. If RHComAdd.DLL appears, highlight it and re-enable it. (THIS IS WHAT I DID)
    Alternatively, you can re-register the DLL. Go to Start | Run and type in the following line, assuming you have installed RoboHelp to the default location.
    regsvr32 "C:\Program Files\Adobe\Adobe RoboHelp 7\RoboHELP\RHComAdd.dll"
    How does this DLL get disabled? The cause has been identified as a Word document being opened in Internet Explorer rather than in Word.
    This problem was fixed in Build 7.0.2.
    Hope this helps you. I'm still working on the compile error.
    -Shannon Mooney

  • Itunes 11.1.4 for Windows: Iphone 4S not recognized in Windows and Itunes

    I recently installed itunes 11.1.4 on my Windows 7 (64) laptop computer and my iphone 4S was no longer recognized in Windows or itunes. Previous versions of itunes had worked with no problems with this combination. I completely uninstalled itunes, apple software update, apple mobile device support, bonjour and apple application support and restarted the computer. When I attached the iphone, it was recognized by Windows. I reinstalled itunes only to find the iphone was no longer recognized in Windows or itunes again. When viewing the device in Device Manager, I discovered the yellow exclamation mark and proceeded to attempt to update the driver. Windows reported that it "cannot verify the digital signature for the drivers required for this device." Repeated the uninstall and reinstall process with a new download of the itunes installer which produced the same result. Need help resolving this problem because I need to sync data on phone with data on computer.

    Hello JHHamlin,
    Go through the section 5. Verify that the Apple Mobile Device USB Driver is installed from the link below
    http://support.apple.com/kb/ts1538
    Go through the above link in the sections which I am mentioning below and see if it fixes your issue.
    > For Windows Vista, Windows 7, and Windows 8
    * Reinstall the Apple Mobile Device Driver
    * In the Device Manager window, right-click Universal Serial Bus controllers and choose Scan for hardware changes from the shortcut menu.
    * Update the Apple Mobile Device Driver> Browse my computer for driver software> Let me pick from a list of device drivers on my computer> Click the Have Disk button.
    * Click the Browse button and navigate to C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers.
    * Double-click the "usbaapl" file
    * Click Open in the Have Disk window. Then, click Next and then Click Finish. Windows will install the driver.

  • Keyboard shortcut for star shape does not work - arrow keys

    I need to use the star shape to make a sort of badge with many points.
    In the past, I've used the star shape and held up arrow or down arrow to change the number of points on the star. This no longer works for me in Adobe Illustrator CS4 (on a Windows Vista). Did this shortcut change? All my other keyboard shortcuts work. I tried resetting the preference file for Illustrator just in case, but it didn't fix it.

    I have found a work-around for this problem, although it's a bit annoying.
    I have a Wacom Bamboo tablet and encountered the same problem with establishing the number of points on a star. I tried everything and noticed it worked sometimes. Well, turns out that it will work only once after changing the settings for your pen.  I just moved the tip feel setting leaving the pen tablet properties window open, went to illustrator and the arrow keys worked. If you try drawing the shape again, it won't work. You have to go back to the pen tablet properties window and move or change something, go back to illustrator and it works again. It's a little annoying, but if you're used to using the arrow keys to create shapes, it's handy to know it's there.

Maybe you are looking for

  • Doubt in oracle AS adapter configuration with siebel

    Hi, I want to configure oracle AS adapter with siebel... i followed follwing steps for that... 1) installed Oracle 10g 2)installed oracle 10g oracleasinfra(10.1.2.0.2) 3) installed oracle 10g oracleasmidtier(10.1.2.0.2) 4) installed oracle AS adpter(

  • Problems with Storage Cluase

    Hi, I have problem with the storage cluase on tables and tablespaces. When I want to change the max_extents value I get an an ora error. ALTER tablespace TEST storage ( maxextents 999) ORA-02142 Not a valid alter tablespace option It is an locally ma

  • SET and GET cursor

    Hi all! How can I get the field where the cursor is placed in a component? Thanks in advance!!!

  • Help T_T - Program not compiling properly

    I'm trying to add a short animation to the source file for a game that was built by an outside studio. Unfortunately, I can't seem to get the program to compile correctly: I get tons of errors, graphics dont diplay properly, etc. I thought perhaps I

  • Creating a digital countdown clock.

    Hey everyone! Sorry for the newbie question, or maybe it's not. I'm trying to create a digital countdown clock for a project and am at my wits end. I've tried using the TCG but it doesn't go nearly high enough (175K hours) and I've tried frame animat