Does Driver.Start() in CWDAQ.OCX clear msgs from the Queue?

I am hosting the CWDAO.OCX ActiveX control in my (C++) application, and communicating to it through VBA. I am also communicating to other devices through an OPC (COM) interface, and occasionally COM messages get lost (specifically, the WM_USER message gets removed from the message queue without getting processed).
It looks like Driver.Start() is removing the messages from the queue. If I add a DoEvents statement to the VBA before starting the driver the frequency of the problem drops significantly.
Does this sound familiar to anyone?
Thanks.
Brent E. Meranda
Software Project Lead
Parker Hannifin Corporation
Electromechanical Automation - CTC
50 W. TechneCenter Drive
Milford, Ohio 45150

Hi LA,
Thanks for taking the time to respond to my question.
It’s actual COM that is posting the message in order to marshal data across an IAdviseSink interface. COM uses WM_USER+0 (which I referred to simply as WM_USER) as the message, with WPARAM set to 0xbabe.
I am able to spy on the NationalInstruments message window, and it uses WM_USER+0 through WM_USER+12. However, it posts the messages to its own window and usually does not interfere with the COM messages. I suspect that somewhere during an acquisition start it is either clearing the entire message queue, or stripping the WM_USER messages from the queue without first checking the window handle of the messages.
This causes the OPC server I’m using to hang because it is waiting on my application to respond to a COM callback that it never receives.
Brent

Similar Messages

  • MQ Adapter does not clear the rejected message from the queue

    Hi All,
    I'm using a MQ Adapter to fetch the message from the queue without any Backout queue configured. However, whenever there is any bad structured message found in the queue, MQ adapter rejects the message and moves the message to the rejmsg folder but does not clear it off the queue, as a result of which it keeps retrying the same hence, filling the logs and the physical memory. Somehow we do not have any backout queue configured so I can move the message to blackout queue. I have tried configuring the jca retry properties and global jca retry as well but to no avail.
    - Is it not the default behaviour of MQ Adapter to remove the rejected message from the queue irrespective of Backout queue is configured or not? The same behaviour working well with the JMS and File Adapter though.
    - Is there any way I can make MQ Adapter delete the message from that queue once it is rejected?
    Regards,
    Neeraj Sehgal

    Hi Jayson,
    Check this URL which answers a problem with com.sap.engine.boot.loader.ResourceMultiParentClassLoader problem:
    http://209.85.175.132/search?q=cache:RnFZ9viwuKkJ:https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.sdn.folder.sdn!2fcom.sap.sdn.folder.application!2fcom.sap.sdn.folder.roles!2fcom.sap.sdn.folder.navigationroles!2fcom.sap.sdn.role.anonymous!2fcom.sap.sdn.tln.workset.forums!2fforumtest!2fcom.sap.sdn.app.iview.forumthread%3FQuickLink%3Dthread%26tstart%3D45%26threadID%3D1020700+com.sap.engine.boot.loader.ResourceMultiParentClassLoader&hl=en&ct=clnk&cd=3&gl=in&client=firefox-a
    Please check that the JDK compliance level is at 5.0
    Window->Preferences->Java->Compiler->Compiler compliance level set this to 5.0
    Set the installed JRE to the one you have mentioned JDK 5.0 update 16
    Window->Preferences->Java->Installed JRE's->
    Click on the add button to select the path of your JDK.
    once completed click on the check box next to it.
    regards,
    AKD

  • I am trying to burn DVDs from iPhoto slideshows.  My pictures number in the hundreds and we know that iPhoto captures 99 and then "starts over".  This plays fine from the Mac Book but glitches arise on the DVD when playing it on a DVD player.  Any suggsts

    I am trying to burn DVDs from iPhoto slideshows.  My pictures number in the hundreds and we know that iPhoto captures 99 and then "starts over".  This plays fine from the Mac Book but glitches arise on the DVD when playing it on a DVD player.  Any suggestions on how to overcome the 99 "Chapter limitation" that IPhoto has?  Has anyone heard or tried an app called Vilisoft?  I read good things but I am not sure if it will do what I want.
    Jim

    Then use multipel 99 picture slideshows. 
    You can have up to 8 or 9 slideshows per menu.  If you add a sub menu reduce that by 1 and add 8 more to the sub menu.  The top menu can have links to up to 8 or so submenus (depends on the theme) and each submenu can have up to 8 or so slideshows. 
    However, converting a very large slideshow to a QT movie as Terence suggested does not envoke the 99 slide limit in iDVD.  It just becomes a single video/movie file.  So you should not have a problem with exporting at the large size, 720 x 540,
    and dragging the resulting file into the iDVD menu being sure to avoid any drop zones.
    OT

  • Hard drive is missing. I can boot from the cd but when running the disk utility, no hard drive shows up.

    Hard drive is missing. I can boot from the cd but when running the disk utility, no hard drive shows up.
    This is a problem that suddenly appeared.

    Please post a screenshot of Disk Utility that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • I copied all my CD's onto a hard drive.  Can I transfer each CD from the hard drive to my iPhone either wirelessly or by direct connection?

    I copied all my CD's onto a hard drive.  Can I transfer each CD from the hard drive to my iPhone either wirelessly or by direct connection?  Do I have to make a playlist for each cd and then transfer it to my iPhone?

    When you buy your new iMac you will be able to have the installation process transfer all your applications, data (including music, pictures, documents, etc) and settings to your new computer. In the past that was done via Firewire. I'm not entirely sure of the process with the new iMacs that don't have firewire. I think it can be done via ethernet and probably via tha thunderbolt cord using a firewire adapter but you'll want to check that out.
        With the your new computer properly connected to your old computer, the initial booting of the new computer will include the ability to move everything over.
        If for some reason you don't want to do that (smart if you have some horrible software issue that is causing problems) you can connect your old computer to the new one and start it in Target Disk mode where it will be seen as a hard drive. You can then manually copy over all your music and import that into iTunes (and any other data you want).
        Somebody here will surely point you to directions for connecting an older iMac with no Thunderbolt to a newer iMac with no Firewire.

  • How do I get a disc out of my super drive when I forgot to eject it from the drive before pulling out the USB cable ?

    how do I get a disc out of my super drive when I forgot to eject it from the drive before pulling out the USB cable ?

    How force eject disc: Apple Support Communities
    Mac Mini: Eject DVD Apple Support Communities

  • AP- How to clear receipt from the GR/IR when an invoice is not received

    Good Afternoon-
    What is the best procedure or transaction code to use when a user needs to clear receipt from the GR/IR when an invoice is not received. 
    Thanks!

    Hi,
    As you know GR/IR clearing account is a provision account and it is posted to whenever you receive goods that have not been invoiced or receive invoice that have not been delivered. On the balance sheet date during the period end we have to make transfer postings to reflect the goods invoiced but not delivered and the goods delivered but not invoiced accounts.
    You need to create one adjustment (Correction) account and two target accounts Goods deliverd but not invoiced, Goods invoiced but not delivered. In t-code OBYP you need to assign these accounts for each of your reconciliation account.
    This t-code F.19 analyses the GR/IR claring account and posts outstanding amount to adjustment account. It creates the offsetting entry to the Goods deliverd but not invoiced if the account has a credit balance and Goods invoiced but not delivered if the account has a debit balance. These 2 accounts are target accounts. These postings are made separately per company code, GR/IR clearing account and reconciliation account. They are then reversed on the day you specify in the (F.19)program run.
    Regards,
    Krishna Kishore

  • Dequeue with OCCI does not remove the message from the queue

    Hey there,
    I have this problem where no matter what dequeue option I try the messages never seem to be removed from the queue... I tried looking around and found only a similar un-answered question...
    Thanks in advance...
    void TryAnydataDequeue(oracle::occi::Connection * conn)
         try
              std::cout << "Dequeue Commence..." << std::endl;
              Consumer cons(conn);
              //Settings de dequeue
              cons.setCorrelationId("SPPC");
              cons.setQueueName("Anydata_queue");
              cons.setConsumerName("SNOOP");
              cons.setDequeueMode(cons.DEQ_REMOVE);
              //cons.setDequeueMode(cons.DEQ_LOCKED);
              std::cout << "Reception du message..." << std::endl;
              Message m2 = cons.receive(Message::ANYDATA);
              AnyData any(conn);
              any = m2.getAnyData();
              if(!any.isNull())
                   oracle::occi::TypeCode type = any.getType();
                   if(type == OCCI_TYPECODE_VARCHAR2)
                        std::string msg = any.getAsString();
                        std::cout << "Message Reçu: ";
                        std::cout << msg << std::endl;
                   else
                        std::cout << "Format du message invalide..." << std::endl;
                   std::cout << "Fin du message... (Press a key)" << std::endl;
              else
                   std::cout << "Message invalide..." << std::endl;
              System::String * theInput = System::Console::ReadLine();
         catch(SQLException ex)
              std::cout << "Exception: " << ex.getErrorCode() << " - " << ex.getMessage() << std::endl;
              System::String * tnput = System::Console::ReadLine();
    }

    The message from the queue will be removed when you do a commit after a successful dequeue call, depending upon your message retention settings.
    After you have done this processing and successfully performed a commit, what is the output of the following query:
    SQL> connect AQADMIN/password
    SQL> select msg_state from aq$<your_queue_table_name_goes_here> ;?
    If it is PROCESSED, check your queue retention settings.
    Additionally, make sure that the init.ora parameter AQ_TM_PROCESSES is set to a NON-ZERO value for this to happen.

  • HT2500 Does anyone know how to remove a group from the address panel in mail?

    Does anyone know how to remove a group from the address panel in mail?

    I haven't seen too many questions like this on this forum.  Did you also try the photoshop forums?

  • Hi, my product is under warranty and has a power button issue. Greek dealer doas not support it becouse I bought it from the us. wharT shall  I do.Thank you

    Hi, my product is under warranty and has a power button issue. Greek dealer doas not support it becouse I bought it from the us. wharT shall  I do.Thank you

    It can only be serviced in the country where it was originally sold.  Take it back to the US or send it to someone you know there to take it in for service.

  • Can I read the texts msgs from the other lines on my account?

    Can I read the texts msgs from the other lines on my account?

    rcschnoor wrote:
    tikibar1 wrote:
    If the phone is using Verizon Messages and you know the MyVerizon password, then you can read the messages from your computer.
    Of course, this assumes the messages had not been deleted on the phone by the user.
    Of course!  And that also applies to reading the texts on the phones themselves. 
    Deleted texts will still show up on the text logs, though.

  • HT201272 What does download all mean on my purchased music from the iTunes Store app?

    What does download all mean on my purchased music from the iTunes Store app?

    Assuming you are in a region where you are allowed to redownload your past music purchases, delete the broken tracks only from your iTunes library, go to the iTunes Store home page, click the Purchased link from the Quick Links section in the right-hand column, then select Music and Not on this computer. You should find download links for your tracks there.
    If the problem persists, or that facility is not yet available in your region, contact the iTunes Store support staff through the report a problem links in your account history, or via Contact Support.
    BTW, are these all recent purchases (last 8 weeks or so) or does it affect older tracks also?
    tt2

  • After trying many times with two different debit cards still does not allows me to buy a game from the app store gives error "YOUR PAYMENT METHOD WAS DECLINE.PLEASE ENTER VALID PAYMENT METHOD INFORMATION"  Please help me out

    I WANT TO PURCHASE NFS MOST WANTED GAME FROM APP STORE BUT IT DOESN'T ALLOW ME TO PROCEED FURTHER
    after trying many times with two different debit cards still does not allows me to buy a game from the app store gives error "YOUR PAYMENT METHOD WAS DECLINE.PLEASE ENTER VALID PAYMENT METHOD INFORMATION"  Please help me out

    In most cases, you can't use a Debit card anymore. So, either redeem an iTunes gift card or use a credit card.

  • Bootcamp won't launch, I've been getting the message "quit unexpectedly". This started happening after I erased "pre" from the code now I can't open it any more. What should I do?

    Bootcamp won't launch, I've been getting the message "quit unexpectedly". This started happening after I erased "pre" from the code now I can't open it any more. What should I do?

    Please try
    sudo codesign --deep -fs - /Applications/Utilities/Boot\ Camp\ Assistant.app

  • HT5930 Why does my Aperture v3.5.i look different from the one shown in the online videos

    Why does my Aperture v3.5.i look different from the one shown in the online videos

    Are you asking about the colorful icons in the video?
    The video must have been done with an Aperture version 3.2.4 or earlier. Since Aperture 3.3 are the icons drab and gray - the Aperture 3.3 Release Notes are calling this:
    Newly designed monochrome source list and toolbar icons.
    The Release notes will tell you, what has changed since then:
    http://support.apple.com/kb/TS2518
    --Léonie

Maybe you are looking for

  • How do you include CLOB data in XML document? Is there a size limit?

    Im actually using the Oracle API's to create an XML document as a clob. But for the columns that are CLOB columns they just put <column>(CLOB)</column> in the document and not the actual CLOB. Anybody know the direction I need to resolve this?

  • Dynamic NAT ASA 8.4 Packet Tracer not working

    Hi guys, I've tried to ping and go to a site from 192.168.1.6 to 10.10.10.12, but it's not working. I've followed a couple dynamic NAT tutorials, but I can't figure out what I'm missing. The config is below, and I'd appreciate any help. Thanks! ASA V

  • How do we post questions on this forum with basic markups...

    Mine never works. Please look at my last post, just earlier to this one. It is horrible. I tried Firefox and IE thinking it could be something to do with that. Anyways, I hope I get this solved.

  • Turning off syncing on ATV

    hello.. Once the syncing is done.. .... can i shut the syncing option off on the ATV and still have my content on that i synced with my computer, or is the sync option supposed to be on at all times on the ATV... thank you

  • Getting Error in collection

    Hi Gurus I'm reading collection topic and practicing it but got stuck into the following codes: Code DECLARE    TYPE RecordTyp IS RECORD (last employees.last_name%TYPE,                              ID employees.employee_id%TYPE);    rec1 RecordTyp; -