Why I have the problem about "terminateConnection()"

When I want to destruct my class, there is an error occured for "Segmentation fault". My code is following:
COMSDatabase::COMSDatabase(string strUser,string strPassword,string strSID)
     m_pEnv = Environment::createEnvironment (Environment::DEFAULT);
     m_pConn = m_pEnv->createConnection (strUser,strPassword,strSID);
     m_pConn->setStmtCacheSize(10);                         //10 is the num of Statement in the cache.          
COMSDatabase::~COMSDatabase()
     m_pEnv->terminateConnection(m_pConn); //!!!!Error!!! Why????                    
Environment::terminateEnvironment(m_pEnv);
void COMSDatabase::GetJobRequest(char *&pszRequestID, char *&pszJobID, char &cRequestCommand, int &nProcessLevel)
     string sqlStmt = "SELECT REQUESTID,JOBID,REQUESTCOMMAND,PROCESS_LEVEL FROM OMSREQUEST ORDER BY PROCESS_LEVEL DESC, REQUESTCOMMAND ASC";
m_pStmt = m_pConn->createStatement(sqlStmt,"queryOMSRequest");     //using Statement Caching
ResultSet *pRset = m_pStmt->executeQuery ();        
ResultSet::Status status = pRset->status();
if (0!=status)
     try{
          if (pRset->next ())
               string strRequestID = pRset->getString(1);     
               const char *pszRequestIDTemp = strRequestID.c_str();                     
               sprintf(pszRequestID,"%s",pszRequestIDTemp);
               string strJobID = pRset->getString(2);
               const char *pszJobIDTemp = strJobID.c_str();
               sprintf(pszJobID,"%s",pszJobIDTemp);
     string strRequestCommandTemp = pRset->getString(3);
     const char *pszRequestCommandTemp = strRequestCommandTemp.c_str();
     cRequestCommand = pszRequestCommandTemp[0];
     nProcessLevel = pRset->getInt(4);     
          else
               m_nErrorCode=1;
               m_strErrMsg="No Job Request Command available now!" ;
     }catch(SQLException ex)
          m_nErrorCode=ex.getErrorCode();
          m_strErrMsg=ex.getMessage();
          m_pStmt->closeResultSet (pRset);
          return ;
     catch (exception &ex)
               m_nErrorCode=-1;
          m_strErrMsg=ex.what();
          m_pStmt->closeResultSet (pRset);
          return ;
m_pStmt->closeResultSet (pRset);
     m_pConn->terminateStatement (m_pStmt,"queryOMSRequest");
return ;
}

I got it!

Similar Messages

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • HT201272 Have the problem in app purchase

    I have the problem about in app purchase. I purchased in app " Contract Killer 2" It 's error to tranfer process.I didn't get anything
    After that I got bill from your app . Please check and I 'm not sure i have to pay those bills or not. I have 2 accounts to purchase but same credit card.
    My order id in "[email protected]"
    1. MGFM85T901
    2. MGFM85SMQX
    3. MGFM8H0NNT
    My order id in " [email protected]"
    1. MH3W90KWBT
    2. MH3W90X3X1
    Please report to me
    Thank you

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Note:
    Some In-App purchases require a Credit Card.

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • I have a macbook pro core i7 mid 2012 And update to the latest version 10.8.4 system after updating the system I have the problem appeared to take off the device and stops at the apple logo for about 5 minutes and then enters the desktop How can I solve t

    I have a macbook pro core i7 mid 2012
    And update to the latest version 10.8.4 system after updating the system I have the problem appeared to take off the device and stops at the apple logo for about 5 minutes and then enters the desktop How can I solve this problem and thank you

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time when you had the problem. Select the messages logged after the boot, during the time something abnormal was happening. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    For example, if the problem is a slow startup taking three minutes, post the messages timestamped within three minutes after the boot time, not before. Please include the BOOT_TIME message at the beginning of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post shutdownStall, spin, or hang logs — they're very long and not helpful.

  • Why is my location city changed by Firefox to a town I don't live in? I put in my zip code in the weather info and it will not hold it no matter what I do. This is very frustrating and never a problem in the past. IE doesn't have the problem. Help?

    Why is my location city changed by Firefox to a town I don't live in? I put in my zip code in the weather info and it will not hold it no matter what I do. This is very frustrating and never a problem in the past. IE doesn't have the problem. Can anyone help?

    1) Is it a video clip? Something you recognize?  To be clear, it's displaying at a point in your exported movie but doesn't appear at all in the sequence?
    2) What are your sequence settings?  Right-click your sequence and choose "Item Properties" to verify.

  • I have an iMac os x 10.4.11 but I am having problems with Flash Chat. About 3 weeks ago, I can no longer type in messages and send them in any Flash Chat situations. I have uninstalled and re-installed Flash Player 6 times but still have the problem.

    I have an iMac os x 10.4.11 but I am having problems with Flash Chat. About 3 weeks ago, I can no longer type in messages and send them in any Flash Chat situations. I have uninstalled and re-installed Flash Player 6 times but still have the problem.

    I have an iMac os x 10.4.11 but I am having problems with Flash Chat. About 3 weeks ago, I can no longer type in messages and send them in any Flash Chat situations. I have uninstalled and re-installed Flash Player 6 times but still have the problem.

  • I cant upgrade my new ipad to the ios6 dont knkow why and whats the problem and i was alo trying to   do the update simolteniously for infinity blade which i stoped in between as it crashed the ios upgrade   once hence tryed it again it went half way but

    i cant upgrade my new ipad to the ios6 dont knkow why and whats the problem and i was alo trying to
    do the update simolteniously for infinity blade which i stoped in between as it crashed the ios upgrade
    once hence tryed it again it went half way but it didnt work at all and i am trying to do it from the
    India..

    bnjr86 wrote:  There have been times when I've walked in there, that I really don't want to deal with VZW anymore and just take my business elsewhere.
    I  wonder if another provider would really be much different?  Read some of the other carrier forums - seems to be the same story everywhere.
    I'm not disagreeing with you - I've found that I am usually more informed about Verizon policies and procedures than some of the reps in our local store.

  • Hello.i have a problem about my MacBook white Version OS X 10.5.8.

    Hello.i have a problem about my MacBook white Version OS X 10.5.8. Why I cant update the new iTunes in my MacBook. when i update the software and at the end it appear (The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed by Apple). I don't understand what is the problem.plz help me.

    The new version of iTunes (iTunes 11), requires 10.6.8 OS or higher.

  • I have just updated to Yosemite, but now I can't get the custom shortkeys to work. In Mavericks I had no problem whatsoever, but now even after googeling and restart no solution. Does anyone have the problem? All the other shortcuts work!

    I have just updated to Yosemite, but now I can't get the custom short-keys to work.
    In Mavericks I had no problem whatsoever, but now even after googeling and restart no solution.
    Does anyone have the problem? All the other shortcuts work!

    Hi Thomas,
    I can confirm the problem you are hitting. The XML test trace does not get recognized at all, and it defaults to Eclipse's basic Open File behaviour. I am not sure if it's because the format definition is missing, or if it's because something prevents the trace type from being recognized. I will open a bug about it.
    Thanks for identifying this issue!
    In the meantime, if you'd like to experiment with XML analyses, you can also take a look at the example at https://github.com/tracecompass/xml-analysis-example .
    Cheers,
    Alex

  • A few months ago, I purchased a new iMac. I recently created a movie using iMovie. Then I found out that iDVD is not included. So I have the problem that I want to burn a movie that I can play on my DVD player and watch on a television. i rang Applecare a

    A few months ago, I purchased a new iMac. I recently created a movie using iMovie. Then I found out that iDVD is not included. So I have the problem that I want to burn a movie that I can play on my DVD player and watch on a television. I rang Applecare and was told that I need a program called BURN.
    Is this correct? I can export the movie from iMovie in a m4v format, but I think I need to convert this to iso format before I can burn the disc.
    I know there are programs like TOAST that will do this, but it is expensive.
    I would be very grateful for any assistance.

    Burn will not do what you want, and there is no real substutute for iDVD.
    Why is there no iDVD on my new Mac?
    Apple insists that the entire world has access to fast broadband (and are prepared to pay for the considerable bandwidth usage) and wants to distribute home movies to friends and relatives via download (iCloud, YouTube, Facebook, whatever) rather than mailing them a DVD. The fact that in reality not all users do, has so far had no effect on this policy. If you scream and shout loudly enough down the phone Apple may send you a free copy of iDVD. Stating that they would return their brand new Mac unless they received a copy of iDVD worked for some, but that is now said to have been withdrawn by Apple.
    Also, you can complain bitterly via Apple’s Feedback link, perhaps suggesting that Apple could have provided a choice between burning DVDs and distributing home movies by other means. You may feel that Apple should not dictate how you destribute family videos or photos to distant relatives and friends, and should not assume that every user is prepared to pay for the excessive bandwidth usage charged by ISPs for huge downloads from the App Store:
    http://www.apple.com/feedback/
    Whilst Macs with a Superdrive continue to be able to burn video DVDs, the software for so doing, iDVD, is no longer included in the iLife bundle that came with OS 10.7 Lion (which also omitted iWeb) or that comes with OS 10.8 Mountain Lion. And it is no longer included in the iLife 11 from the online Apple Store: http://www.apple.com/ilife/. Your only solution is to look on Amazon or eBay and try to get an older version that includes iDVD 7, i.e. iLife version 9 onwards. You should also do this if you plan to buy a new Mac anytime soon, as stocks of iLife that include iDVD will not be available for ever.
    However, the vastly more expensive FCPX can burn a DVD without iDVD or DVD Studio Pro involvement, but lack the themes etc of iDVD. Also, of course, there is Roxio Toast, which is the best software for burning anything but again does not offer the flexibility of iDVD.
    And if you think Microsoft are any better, their new Windows 8 operating system will not play DVDs, or burn them, unless customers buy an extra upgrade, the company has announced:  http://www.gizmag.com/windows-8-no-dvd-playback/22443/
    In other words, computer manufacturers have declared optical media as dead, long before consumers are ready to stop using them, which is fine as long as they offered us a choice, but they won’t even do that. Flexibility and intuitive use of a computer seems to be a thing of the past.

  • The problem about vrrp

    Dear all,I have a problem about vrrp,my core switch is cisco 3750x and huawei S5700-28C-EI, after I configured vrrp between them,the switch log got the error problem as follow:
    *Jan 11 00:01:43.111: %VRRP-6-STATECHANGE: g1/0 Grp 3 state Backup -> Master
    *Jan 11 00:01:43.111: VRRP: tbridge_smf_update failed
    *Jan 11 00:01:44.187: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:46.539: VRRP: Advertisement from 10.252.200.36 has an incorrect group 10 id for interface g1/0                
    *Jan 11 00:01:50.323: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:51.707: VRRP: Advertisement from 10.252.200.36 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:52.079: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:53.079: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    If cisco and huawei cannot interconnect with each other?

    Can you post the interface config from the huawei and cisco device?
    HTH,
    John
    *** Please rate all useful posts ***

  • I've got the problem about sharing the screen

    Hi, i bought iMac 21.5 (Late 2013), i'v upgraded it to the Mavericks. I've got the problem about sharing the display, i have thunderbolt to hdmi adapter and while i plug it to my TV, it doesn't work, it has no signal on TV, can someone help me ?? Thank Yo

    Hello Gukakila
    Start your troubleshooting with the article below. Try out the cable on a different tv or monitor to see if it shows up there. You may also need to reset the SMC and Parameter Ram.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    -Norm G.

  • I see that there are people that have the problem suddenly almeer notes disappear this is with me also happened and now comes the: If I put a backup that I have my back than notes for 30 seconds back and THEN THEY DISAPPEAR again!

    i see that there are people that have the problem suddenly all notes disappear :
    this is with me also happend and now comes it
    when iputa backup that i have back than i kan see the notes voor 30 seconds and than the disappear again!

    Hello,
    Just to set your expectations...it's fine to "rant" about things here, but I do hope you are not expecting a formal reply from anyone at BlackBerry. For this site is not a channel for any formal communications with, escalations to, nor support from BlackBerry for any purpose whatsoever. Rather, it is a user-to-user community of volunteers who try to help each other out to the best of their abilities. Note this banner, please, posted at the top of nearly every page of the site:
    Consequently, words posted such as "WHAT THE HECK IS WRONG WITH YOU?" are actually directed at the other kind volunteers of this site, who may not respond in the most kindly of fashions. Hopefully, we all can understand that your rant is directed at BlackBerry (though, by placing it here, it is misplaced), but I just wanted to gently caution you about such posts, as well as ensure that your expectation concerning replies is properly set. Also, for new members who join the site, it's always good to have responses to such posts, covering the intended use of the site so that those new members can better understand such things.
    On the other hand, if you do desire assistance from other users for your issues, you might consider wording your requests in a manner that would motivate a kind volunteer to provide such.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Good am sir i have an problem about may hp touchpad i just update it for android but i am not succes

    good am sir i have an problem about may hp touchpad i just update it for android but i am not success to install it what can i do for it
    This question was solved.
    View Solution.

    Installing another Operating System to your Touchpad is an option with inherent risk, and is not supported here on this Forum.
    Try researching your issue over at http://www.webosnation.com.  They have an entire forum section devoted to "Android on the HP TouchPad".
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

Maybe you are looking for

  • Trying to repair Satellite A105-S4201 (driver/software issue)

    I have been fixing a friend's laptop that had about 83 viruses on it, and ended up having to reinstall windows in order to get it to boot properly. I rebuilt a windows install disk using the I386 folder provided on her hard drive. Everything checked

  • Error during ECC 6.0 installation on Windows Server OS

    Hello Experts, I am having trouble installaint ECC 6.0 on windows server 2008 with MS SQL. I was half way through the installation and encountered an error. Hence i am trying a fresh installation however I get an error message " Cannot determine para

  • Copy an Image from one document to another

    Is there an easy way to copy a rectangle containing an image (not a link to an image) from one document to another? Thanks. Chris.

  • Change one sound in Ultrabeat

    Does anyone know how to change one sound (voice) opposed to an entire preset of sounds in Ultrabeat? Say you have a preset loaded but you would like to change out the kick drum for one that resides in another preset. If I click on the Import button i

  • Some MP3 songs Invisible to iTunes - Repeatable Problem!

    This may sound familiar to avid readers of this forum, but I haven't gotten any of the previously offered solutions to work for me. I have spent countless hours over the past two years ripping/digitizing my embarasingly-huge CD and LP collections to