Trying to use sql_context for multithreading.

I'm trying to use an sql_context to get some multi-threaded code to work properly.
     sql_context ctx1, ctx2;
     EXEC SQL CONTEXT ALLOCATE :ctx1;
     EXEC SQL CONTEXT ALLOCATE :ctx2;
     /* Create the DB Alert to wait for table updates */
     rc = _beginthread(WaitForTableUpdates, 0, ctx2); //wait for DB events.
This is the code I expected to work properly, but the error I get is that the sql_context data type is undefined. "Illegal use of this type as an expression"
I can't find much documentation on the sql_context data type or how it is defined.
Any advice?

I'm trying to use an sql_context to get some multi-threaded code to work properly.
     sql_context ctx1, ctx2;
     EXEC SQL CONTEXT ALLOCATE :ctx1;
     EXEC SQL CONTEXT ALLOCATE :ctx2;
     /* Create the DB Alert to wait for table updates */
     rc = _beginthread(WaitForTableUpdates, 0, ctx2); //wait for DB events.
This is the code I expected to work properly, but the error I get is that the sql_context data type is undefined. "Illegal use of this type as an expression"
I can't find much documentation on the sql_context data type or how it is defined.
Any advice?

Similar Messages

  • Trying to use hangouts for sms on verizon droid maxx but "can't compose"

    I'm trying to use hangouts for SMS on my Verizon Droid Maxx but the message "Can't compose. No default SMS app." displays when I try to compose (+") a new message, even though the top of the screen says that "Hangouts is your SMS app".  What do I need to do?

        Good Afternoon, dgcaskey,
    I love my Hangouts application. Let's see if we can get this up and running for you. Have you been able to use this application before? Or did you just installed this app onto your phone? Have you been able to delete the application off the phone and redownload it? When you receive a text message does it come in through the Hangouts app or the normal stocked application that is on the phone? Please keep us posted.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport

  • HT3275 Tried to use TM for the first time.  Can't get it to scroll back at all - everything is grayed out.

    I can scroll through the dates.  They highlight and expand when I scroll through them; some gray (local) and some magenta (on my backup disk). 
    But nothing at all happens when I click, right click, or double click on ANY earlier date.  The back/forward arrows in the lower right are also grayed out and without function.
    I tried it with and without the backup disk attached (just trying to recover a file that I goofed up this morning, so last night is fine.)
    I did NOT set any files to be excluded from backup, except for the backup disk itself.  The backup disk is FAR away from being loaded; 43 GB out of 500.
    Any ideas?

    OK, I may have figured out my problem, since jakeloveslucy steered me to the Time Machine Preferences panel.
    I use my MacBook for business, and I travel a lot, so I have FileVault turned on, and I make a fresh backup last thing before each trip, just in case the MacBook gets lost, damaged or stolen. (Duh.) 
    When I went to the "Select Drive" part of the Preferences Panel and selected my Firewire external drive, it said:
    "FileVault is turned on for one or more user accounts on this computer. Time Machine backs up home folders protected by FileVault only when the users who own those home folders are logged out.
    You can’t browse or restore individual items of a home folder encrypted by FileVault in the Time Machine backup. To restore all files and folders from this type of backup, start up from a Mac OS X Install disc and select “Restore System From Backup” from the “Utilities” menu in the Installer."
    As I read that, since I'm the only user of this machine, I can only back up when I'm logged out (?!), and I can only recover with a full backup, not individual files.
    So Time Machine is useless if you use FileVault to protect your data?  Please, someone, confirm or deny!

  • Hello, I'm trying to use Firefox for Android on Nook HD+. Can't find Home button to set up Home Screen.

    I want to be able to start with and return to the Home Screen but I don't have one because I can't set one up using the Home Screen Button. Please help, thanks, Tony.

    Hello,
    Could you please specify your problem? Are you trying to get to the "awesome screen" (firefox home on android) If so, you just close your current tab or open a new tab. To do this, tap the top left of your screen in Firefox. This is to the left of the back button. Now you either slide down a tab to close it, or tap the "+" sign at the top left while at your tab area. And also, there is no exact home button while in Firefox for android, only in desktop Firefox (at least there used to be). Hope this helps in some way!

  • Trying to use TechTool for the 1st time.

    Powerbook G4 17 inch   Mac OS X (10.4.4)  
    My 4 month old 17" Powerbook G4 has been acting up lately. Various programs freezing up or closing as well as Finder locking up. So i'm trying to run the TechTool that came with my AppleCare protection package for the first time. When I try to open it after installing it just freezes. And when I follow the troubleshooting instructions and hold C while I restart it, it goes to a screen filled with code where there is a box telling me to restart the computer. Also, it say "panic: we are hanging here..." at the bottom of the screen, after all the code.
    What do I do? Please help.

    Check Micromats site to see if you have the correct Tech Tool disk to use on Tiger. Some macs came with the wrong one and sould'nt be used.
    In the meantime,try using Disk Utility to repair your startup disk (hard drive) as shown in Dr.Smokes Resolving Disk, Permission, and Cache Corruption.
    Cheers!
    DALE

  • Fcpx will not respond i have been trying to use it for about a week now it still wont work i have tried disk permissions and everything else i can think of and it still wont work

    fcpx will not respond, i neeed help

    my mac is 24inch from early , Mac OS X Lion 10.7.5 9 (11g63b) . and yes fcpx has been working fine for months now but on my last project it started making me force quit everytime i try to use it now. i followed the steps with reseting the preferances but i didnt work. i also tried deleting the app and reinstalling , and disk permissions all failed. can u help me out?

  • I'm trying to use DAQmx for simple event counting using PFI8

    Hi,
    I am presently using Traditional DAQ (Legacy) drivers in my software, however I'm in the process of switching over to DAQmx drivers.  Our systems use an E Series DAQ card: PCI-MIO-16XE-10.
    I use PFI8 along with Counter 0 to do simple event counting.  The signal is connected to PFI8 and as it changes, my counter output either increase or decreases in value.  The attached vi shows how I've done it in the past using the Legacy drivers (top portion of the vi) and how I'm attempting to do it using the DAQmx drivers.  I've combined both versions on the single vi just for illustration purposes - when I do my testing they are on separate vi's.
    I'd appreciate it if anyone could help me to figure out why my DAQmx version isn't working properly.  Thank you very much!
    Steve
    Attachments:
    PFI8_DAQ_Comparison.vi ‏36 KB

    Hey Steve,
    The DAQmx driver installs several examples into LabVIEW that
    demonstrate how to implement various event counting applications.  I
    recommend you look over these and see if any of them accomplish what
    you're trying to do.  They're usually very simple to understand and
    well documented, but I'd be happy to help you out with any of them if
    you had a particular question. 
    You can find them in the Example Finder (Help >> Find Examples)
    in LabVIEW.  Drill down to the following location in the directories:
    Hardware Input and Output >> DAQmx >> Counter Measurements >> Count Digital Events
    You'll see a number of examples, but I recommend starting with 'Count Digital Events.vi'
    Since PFI8 corresponds to CTR0 SRC, make sure you set it to use counter 0.  This should work correctly.
    Elijah Kerry
    Senior Product Manager, LabVIEW
    Follow my Software Engineering for LabVIEW Blog

  • Bad request message trying to use website for my home business

    I have my own business within Stella & Dot
    www.stelladot.com Just today, I cannot access one tab on the home page menu that has to do with my personal financial activity and that of my team. all other tabs on the site can be accessed. I remember updating Firefox recently. This is extremely annoying!

    It could be useful to know whether it last worked in Firefox 3.6 or Firefox 4...
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    Save your work first!
    1. Clear Firefox's Cache
    Tools > Options > Advanced > Network > Offline Storage: "Clear Now"
    2. Delete your stelladot.com cookies
    From a page you can access on the site, right-click and choose View Page Info > Security > "View Cookies"
    Then you can remove all cookies for sites ending with stelladot.com and reload. You'll probably have to log in again.
    Any luck?

  • Trying to use iCal for Mac on Windows network

    I'm using iCal on an iMac using a Windows based server. I can see when Windows users invite me to meetings, but I can't seem to invite them. I get the message "The account "name" currently can't be modified. To discard your charges and continue using the version of your calendars that's on the server, click Revert to Server. When doing so, I receive the message "You entered an invitee that wasn't recognized by the server."
    I'm using an 27" iMac running OS X 10.7.3.

        Good Afternoon, dgcaskey,
    I love my Hangouts application. Let's see if we can get this up and running for you. Have you been able to use this application before? Or did you just installed this app onto your phone? Have you been able to delete the application off the phone and redownload it? When you receive a text message does it come in through the Hangouts app or the normal stocked application that is on the phone? Please keep us posted.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport

  • Trying to use 10G for linux

    Two Problems
    1. I downloaded 10 for linux,
    used gunzip
    Now I am at ship.db.cpio
    I ran cpio -idmv ship.db.cpio
    The command never stoped, what did I do wrong ???
    Next problem
    The 10G for linux state:
    I need to change on my linux computer,
    sysctl.conf, pam.d/login, limits.conf, profile
    There all read only files,
    What do I need to do ????
    I am using Red hat linux EP. rev 3 newest one.

    1. Use cpio -idmv <ship.db.cpio
    sysctl.conf, pam.d/login, limits.conf, profileThese are system files : you have to login as root to modify them, or su - root if you are already connected as another user.

  • I am trying to use pencil for my wire frames yet it is not compatible with FFox 16.0.1. What can I do??

    Pencil Project is not working as needed. Maybe the pencil project has not caught up to the updates of the FF browser.

    Is this an extension? Have you tried opening the .xpi file with an archive handler like Betterzip or Zipeg, extracting the install.rdf file, and increasing the max version number for the target application? After you edit that, save the file, then insert it back into the archive and save it, then reinstall it.

  • Trying to use "check for updates"

    why when do i click in "check for updates" the itunes said that i'm not connected to the internet or to tr again later .I' using the 6.0.2 , when i used the earlier one was fine.
    TKS DUDU

    Who cares if the auto update thing doesn't work? I don't.
    Doesn't that update try to auto-start the installation over the internet?
    Which is bad Windows business, to begin with. I immediatley turned it off the first time it asked me to update.
    I never let anything download automatically without me saying yes or no.
    How else can you figure out what might have gone wrong with your PC, if it's doing stuff in the background that hasn't been really acknowledged?

  • Trying to use Dropbox for iTunes.

    iTunes Music moved OK. iTunes doesn't seem to let you use Library files anywhere other than the original location. What about the Album Artwork folder? Can it be successfully moved to Dropbox?

    no its definitely meant to be a download . its not just the one site this happens at either .
    mixes
    detroit classic vol 3
    its been a long long wait, but the 3rd installment of the classics series is now available for download.
    please also find the previous 2 mixes for a limited time only
    heres a link http://www.vincewatson.co.uk/news.html

  • New Computer, purchased lightroom 5, did on install, tried to use, asks for enter the serial #, when entered get  a red X and only option is to cancel.  Have SD 's want to load into program, but cannot

    new Dell computer, after setting up, loaded a purchased Adobe Photoshop Lightroom  5 program,  activated and loaded from online, wrote down the S/N, when truing to open and use on the computer, it asks for wanting to license it , asks for the S/N., when entered does not proceed, only get a red X , with the only option is cancel. Have photo's I want to load but cannot.

    Yes, that is correct. It’s almost like I have the # but it’s not active. When I go to my account to it look up, I do not see it listed. I did get a verification e-mail that I responded to, so I think it should be listed in my Adobe account  I did not realize the box also had a disc also. I would like to try that but not sure if that would be a problem, since Lightshop appears on my Apps menu.  Would I have to delete the program and start over ?
    Sent from Windows Mail

  • PC user trying to use iphoto for the first time to print a photo book

    Thanks in advance whoever can help me.
    I want to edit a photo book and get it printed.
    what is the whole process? I have never done this...
    can I use any kind of photo format?
    can I use any photo aspect ratio on the book?
    how do I send the photo book once is edited and how do I know everything is ok? someone check it before charging you?
    thanks in advance for the answers and any other tip

    If you want to create a book and have it printed try one of the following online services that do it online and, therefore, can accept files from any platform:
    Sites for Ordering Bound Books
    Ofoto
    Shutterfly
    SharedInk
    ImageStation
    PhotoWorks
    Another is mypublisher.com

Maybe you are looking for