Use of DbEnv::set_isalive and DbEnv::set_thread_id

Hi
BDB version is 4.6.18. The reference documentation says that these function can be set any time during the life of an application. When I set these functions before opening the environment then an exception other than the DbException occurs. But when I set these functions after opening the environment it is working fine. Have a look at the following code
UINT uEnvFlags = DB_USE_ENVIRON |
DB_CREATE |
DB_INIT_LOCK |
DB_INIT_LOG |
DB_INIT_MPOOL |
DB_THREAD |
DB_INIT_TXN ;
try
nRet = Env.set_thread_count( 10 );
nRet = Env.set_thread_id( Thread_Id );
nRet = Env.set_isalive( Is_Alive );
nRet = Env.open( 0, uEnvFlags, 0 );
catch( DbException& e )
catch( ... )
// The control comes here
nRet = Env.open( 0, uEnvFlags, 0 );
Regards
Nisam

Hi Coman
Actually the control never comes to the catch( DbException& e ){} part, instead it comes to the catch( ... ){}. It seems to me that the exception thrown is not a DbException. Please try to execute the scenario at you end.
Regards
Nisam

Similar Messages

  • I am using the mac QQ and when I login it said login timeout.

    I am using the mac QQ and when I login it said login timeout.

    If you are missing using google maps - try the Nokia map app called "here"

  • If we have 3 iPhones, and use the same iTunes for all content, should we use 3 Apple IDs and authorize for all 3 or just use 1 ID?

    I want to enable us to share all apps, music, videos and photos, but enable each phone to keep its contacts and history separate. If I use 1 ID, all new purchases will go on the same credit card, which I'm not sure is ideal, but not horrible. Since we use the same computer and iTunes using only 1 appleID, and the phones are new to the equation since it was only iPods before, what is the best way to handle a family with 3 phones that can share all entertainment content, but not all phone-related stuff? I saw that you can use one AppleID for purchases, but another for iCloud. That may be the best solution, but I don't know enough about this yet to move forward yet- migrating from Android...
    Appreciate the help.

    Thanks for the help, but a follow up question now.
    My iPhone won't arrive for a little while, but my wife already got hers and she wants to set it up now. Using my Apple ID for the purchases, if she starts setting hers up, can she change her iCloud ID to something else quickly? It keeps telling us that we have to sign in with the AppleID first.
    Should we just set up an iCloud account via normal internet before trying all this via iPhone?

  • I have a game but it only for one apple id and one divece but someone i dont know id play that game and using my apple id and i want to know if u can block them from using ur apple id and also erase all the games they downlode with the apple id

    I have a game but it only for one apple id and one divece but someone i dont know id play that game and using my apple id and i want to know if u can block them from using ur apple id and also erase all the games they downlode with the apple id

    There probably is, but it requires that you be able to use punctuation and write in sentences so that we can understand exactly what you want.
    You can block others from using your Apple ID by changing your password.  There is no way to erase what was already downloaded on to someone else's device, for obvious reasons,

  • My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any

    My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any advice is helpful. This has never happened in 6 years

    answered in your other thread LR 4 suddenly no longer recognizes files.

  • If i back up my mac using Time Machine and an external hard-drive, can that same hard-drive be used on another computer and on a PC?

    Hi!
    I hav just got a macbook pro and am used to using a HP pc and am a newbie! I have backed up my macbook with my elements external hardrive and was wondering if i can transfer the music i have purchased and is now on my external hard-drive back onto my other laptop purely because i use both laptops for different things and want to use my music on both. how do i do this? and do i need a particular software to do so?
    Any tips would be greatly appreciated
    thanks
    alex xxx

    Welcome to Apple Support Communities
    You can do it, but it's not recommended to use a Time Machine volume to store other files. In this case, you can create a second volume on the external drive, so you will be able to use it to store data and transfer it to other PCs.
    As you are going to use the external drive with other PCs, you can make the volume and format it in "MS-DOS (FAT)" with Disk Utility > http://pondini.org/OSX/DU3.html Finally, you will be able to copy files to the external drive.
    If you copy files to a Time Machine disk, you may damage the Time Machine file structure, so you shouldn't do it. It may not happen, but it's better not to try that. Also, you won't be able to read the Time Machine drive in a PC

  • I have a iPhone 5.  In usage, it says i have 2.1 gigs used because of photos and camera.  I have deleted all my photos via iPhoto and now reset the phone back to factory settings in order to try to solve this problem, to no avail. Help!

    I have a iPhone 5.  In usage, it says i have 2.1 gigs used because of photos and camera.  I have deleted all my photos via iPhoto and now reset the phone back to factory settings in order to try to solve this problem, to no avail.   Both iTunes  and the phone say that 2.1 gigs are being used, even though the phone now has nothing on it.  What is going on?

    Yeah it works fine over wifi the problem is when I try to use it over my 3G. It's really stressing me out now.

  • I have been using itunes all day and then it wanted me to install a newer version.  When I did it said I can't because it's missing mdsvr80 or something so i downloaded that now it has another error.  How do I get itunes back the way it was or to work?

    I have been using itunes all day and then it wanted me to install a newer version.  When I did it said I can't because it's missing mdsvr80 or something so i downloaded that now it has another error.  How do I get itunes back the way it was or to work?

    See this User Tip by turingtest2
    https://discussions.apple.com/docs/DOC-6562

  • I was using OS Snow Leopard and on 8/1/13 I downloaded Mountain Lion and found out it was not compatible with my HP printer (HP photosmart C5580) so I called Apple and asked how to get Mountain Lion off and Snow Leopard back on.  The Tech told me to

    I was using OS Snow Leopard and on 8/1/13 I downloaded Mountain Lion.  Then I found out it was not compatible with my HP Printer (HP Photosmart C5580 all-in-one) so I called Apple support and the tech told me to erase the hard drive instead of going in the time machine.  Well I did that and then it took about three hours three days a week for about three weeks on the phone with an apple tech to get all my stuff back on my computer.  I have had trouble with my printer (won't do the scan anymore and wasn't printing on my DVDs.  Also the computer keeps freezing up when it is in the sleep mode, etc.
    When I tried to list my problem on this forum it lists your OS at the bottom and mine had Mountain Lion listed as what I was using so apparently it didn't erase it.  Want to know how to get Mountain Lion off and put my Snow Leopard on so things start working right.

    Go to the  menu/About This Mac - what OS version shows there?
    Do a backup, preferably 2 separate ones on 2 separate drives.
    Revert to a Previous OS X
    Revert to Snow Leopard
    If you do revert, I'd use Setup Assistant to restore your data. This process takes a while, so do it when you won't need the computer for several hours, based on my experience.

  • I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image,

    I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image, the guidelines are not locked, it is annoying to have to lock them down again. and it would actually be nice, to ba able to give specific directions when placing the guidelines. Thanks

    Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
    Thanks.

  • Adobe Fonts used in logo design and copyright laws

    Hi, if you are using an Adobe design software such as Illustrator, Flash or Fireworks to create a logo or banner for use as print and or web where it includes Adobe font in the logo and the characters create words ie; the trading name of the business do you need to approach Adobe for permission to use the fonts or is it expected considering the software is for graphical creations?

    Why are we now saying that Photoshop can be used for logos? And what is wrong with CorelDraw? For someone who does not want to argue, it seems odd that an argument is happening within their own posts. :)
    The ideal logo design tool offers versatile vector path editing tools and spot color swatch capability. Logo designers generally use Freehand, Illustrator, or CorelDraw... which all offer these abilities.
    More info...

  • Idoc DEBCOR - Extend use to Business Partners and customise

    I am writing a high level technical design document on a new interface for my current client. We are currently in the scoping/blueprint phase.
    We will be implementing CRM(?), ECC 6.0 and PI7.0
    I have been tasked with writing/creating an outbound interface from CRM/ECC to send Business Partners from ECC to an external application via PI. Preferably using standard SAP functions/transactions!
    Can I use the DEBCOR Idoc and customise/add the additional segments I require for the additional fields for this interface?
    I was hoping to use BD12 (send Customers - Master Data Distribution) as well, but unfortunately, I do not have a sandpit/development system to use yet as we are still "blueprinting", therefore I am unable to test my assumptions before finalising the HTD document.
    If DEBCOR cannot be used is there any logic in use the ADRMAS anc customising this?
    I was hoping to use change pointers as well, but I guess once I have the Idoc configured, I can work out the distribution model in BD64..
    Has anyone sent Business Partners from ECC and if so, what methods were used?

    I am going to try and see if BusinessPartnerDataManagementBusinessPartnerEventOut.informBusinessPartnerAsBulk fits my requirements.
    http://erp.esworkplace.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/render.asp?applytx=&id=86162F8CD62011DB2B24000F20DAC9EF&fragID=&packageid=DBBB6D8AA3B382F191E0000F20F64781&iv=

  • What the difference and use between   of  TABLES and SY-REPID?

    Hi,
    Experts,
    I have came accross 2 cases that i can't able understand
    EX1:
    TABLES: VBAP   -
    >( Here also Appplication Server(AS) creates Wrokarea of Structure VBAP but, by 
    data: v_vbeln like vbap-vbeln.    double clicking on variable v_vbeln AS taking me to DDIC VBAP table VBELN field then what the using declaring tables. )
    ( and ) 
    DATA: VBAP TYPE VBAP -->( Here also Appplication Server(AS) creates Wrokarea of Structure VBAP data: v_vbeln like vbap-vbeln.    but,double clicking on variable v_vbeln AS taking me to user declared VBAP
                                                  i.e., above DATA declaration statement )
    Then Which one is better in Functionality wise as well as Performance wise or when we have to go for TABLES and when we have to go for DATA declaration of DDIC objects.
    EX2:
    what the difference between
    I know that SY_REPID is not a system variable. And also that
    Data: vrepid type SY_REPID.--> Predefined data type in ABAP
    and
    Data: vrepid like SY_REPID.-> Predefined Constatnt in ABAP( it is a constant it allowing with out VALUE                                                                               
    attribute)
    what difference between them and when we have to go Data: vrepid type SY_REPID and when we have to go Data: vrepid like SY_REPID.
    Thank U,
    Shabeer Ahmed.

    Hi Ahmed,
    TABLES:
      VBAP.   " DDIC
    DATA:
      v_vbeln like vbap-vbeln.
    *Here you are using the DDIC VBAP
    DATA:
      VBAP TYPE VBAP.
    DATA:
      vbeln like vbap-vbeln.
    *Here you are using the local data object as your data type so it will always
    * take you to user declared VBAP which is declared by you.
    DATA:
      T_VBAP TYPE VBAP.
    DATA:
      vbeln like vbap-vbeln.
    * here its using T_VBAP not DDIC VBAP
    And for performance always the second option is better, use Data instead of tables, declare your own local structure.
    Data:
      vrepid type SY_REPID.  thereis nop redefined data type in ABAP as SY_REPID
    * its SY-REPID which is a system variable.
    Data:
      vrepid type SY-REPID.
    Also refer to the links:
    Difference between tables statement and by using type statement
    for type and like:
    Re: LIKE and Type in abap statements
    With luck,
    Pritam.

  • HT1349 I lost/had my iPhone stolen. Tried using Find My iPhone and it's offline. It was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Tried using Find My iPhone and it's offline. It (Find my iPhone) was set up. What do I do now? Do I report it stolen? What is the best way in getting back my iPhone if any? Thank you in advance.

    Find My iPhone is good for misplaced iPhone but not good for thief and it was never meant to be.
    You chance of getting it back is very small.
    There are a few things you can try.
    Try remote lock/wipe your iPhone through Find My iPhone.
    https://www.icloud.com
    You can report to the police, cell carrier (expensive cell charges for international calls, roaming etc)
    Change all the passwords used in iPhone: Apple ID, E-mail, Bank Account ....
    http://support.apple.com/kb/HT2526

  • CRM UI using IE 8, Firefox and Google Chrome

    Hi Colleagues,
    Is there any feedback on CRM UI using IE 8, Firefox and Google Chrome?
    A prospect is asking about it and I could not find any oficial information in Service Marketplace.
    Regards,
    Renato Petrulis

    Renato,
    For CRM 2007/7.0 IE8 was release conditionally.  Basically it defaults IE8 back to compatibility mode when viewing CRM from IE8.  Please take a look at the following OSS Notes
    1397488 - Conditional release of SAP CRM 2007 and SAP CRM 7.0 for IE 8
    1302283 - WebCUIF: IE8 Compatibility
    I haven't seen anything for Chrome and Firefox 3 in terms of official support right now.
    Good luck,
    Stephen

  • When building a vacation leave holiday system using SharePoint Foundation 2010 and SharePoint Designer workflows how can I add half day functionality?

    Hi,
    I have built a vacation leave holiday system for SharePoint Foundation 2010 using SharePoint Designer workflows and Javascript. Everything works perfectly but I'm struggling to design a solution for users to specify half day requests that span over dates
    greater than 1 day, i.e. my half day solution works but only when the start and end date are the same. How would I change the user interface to allow users to choose which day they want the half day to be requested when the vacation leave holiday request is
    from, say,  6th - 10th Jan 2014?
    Thanks.

    Hi ,
    I have a test on my machine with a custom approval workflow and it can work normally .Here are the detailed steps :
    1.      
    Open the site in SharePoint Designer .Create a workflow to associate with the document library .Set the workflow to start when an item is created and when an item is changed
    .Also allow the workflow to start manually .
    2.      
    Choose ‘Collect Data from a user’ .
    3.      
    Click on the data and give a name to the Task created .
    4.      
    Define the custom form field name as ‘Approve ?’ .Set the information type as Choice .
    5.      
    Set the choices as ‘Approve’ and ’Reject’ .Display as Checkboxes .Uncheck the ‘Allow fill-in values’ and ‘Allow blank values’
    .Click finish to save .
    6.      
    Click on users and add the users who will approve the documents .
    7.      
    Keep the output to variable as collect .
    8.      
    Add a new step .Choose ‘If any value equals value ’ .Set the any value ‘Data source’ as  workflow variables and parameters .Set the ‘Field
    from source’ as Variable: collect .
    9.      
    Set the value behind ‘equals ’ as ‘Approve’ .
    10.  
    Add a new action ‘Update list item ’ .Set the item as current item .Add the field Approval status as Approved .
    11.  
    Add an Else-if branch to update the Approval status as Rejected .
    12.  
    Publish the workflow and test in your site .
    Thanks,
    Entan Ming

Maybe you are looking for