Forum Stats

  • 3,814,956 Users
  • 2,258,936 Discussions
  • 7,892,896 Comments

Discussions

OO4O

3004
3004 Member Posts: 204,171 Green Ribbon
Need help!
I am using OO4O OraAQ object to enqueue/dequeue.
If am Dequeing for a consumer which has no more messages the Enqueue call throws an exception and gives IDispactch error #440.
Once this happens, all subsequent calls for Dequeing for other consumer also fail even though there are messages for them.

What am i doing wrong?
pseudo code..
#import "ocip8.tlb

...OpenDatabase done.
...GetCreateAQ done...before this class method

CSomething::Enqueue()
{
try{
if(!not_alloc_DqMsg)
m_oDQMsg = m_oAQ->GetAQMsg(ORATYPE_RAW,_bstr_t("RAW"),_bstr_t("SYS"));

m_oAQ->PutConsumer("SomeConsumer");
m_AQ->Dequeue(); //Throws EXCEPTION here
var = m_oDQMsg->GetValue();
...
}
catch(_com_error &err)
{
....
}
}
null

Comments

  • 3004
    3004 Member Posts: 204,171 Green Ribbon
    It seems like you may not be cleaning up after the error before setting the new consumer. Any questions related to oo4o can be posted on the oo4o mailing list- the response time will be quicker.
    Could you please email me your sample application at [email protected]

    Thanks
    Prabha
  • 3004
    3004 Member Posts: 204,171 Green Ribbon
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Krishna Chari:
    It seems like you may not be cleaning up after the error before setting the new consumer. Any questions related to oo4o can be posted on the oo4o mailing list- the response time will be quicker.
    Could you please email me your sample application at [email protected]

    Thanks
    Prabha
    <HR></BLOCKQUOTE>

    I had set navigation to next message. I have since set that to first message and it works fine.
    Thanks for your response
This discussion has been closed.