RE: Async get

2009-07-21 Thread Steve Huston
FYI, the getProcessName() problem has been fixed; see QPID-1998. -Steve > -Original Message- > From: Alan Conway [mailto:acon...@redhat.com] > Sent: Monday, July 20, 2009 2:03 PM > To: users@qpid.apache.org; Steve Huston > Subject: Re: Async get > > > Nithe

Re: Async get

2009-07-20 Thread Alan Conway
Nithesh Shetty wrote: [snip] Now the problem is it give exception if u check the call stack then it show ptr = 0x line 664 qpid::sys::SystemInfo::getProcessName() qpid::client::ConnectionHandler::ConnectionHandle() qpid::client::ConnectionImpl::ConnectionImp() qpid::client:Connection

Re: Async get

2009-07-17 Thread Nithesh Shetty
  HI,   I have added wait before close in the below mentioned code.       subscriptions.stop();     subscriptions.wait();     session.close(); But in windows it gives the same error access violation reading location 0x0 with below mentioned call stack.   on linux it works fine.   Awaiting you

Re: Async get

2009-07-17 Thread Gordon Sim
Nithesh Shetty wrote: SubsriptionManager subscriptions(session); Listener listener(subscriptions); subscription.subscribe(listener, "RMS"); subscription.start(); Sleep(1); subscriptions.stop(); You need to wait for the dispatcher thread to exit before killing th

Re: Async get

2009-07-17 Thread Nithesh Shetty
when i try the same code on linux it says     guest.4578c63b-0089-48bf-8c26-76d0afd78f8b error: not-attached: Session guest.4578c63b-0089-48bf-8c26-76d0afd78f8b isn't attached (qpid/client/SessionImpl.cpp:736) terminate called after throwing an instance of 'qpid::framing::NotAttachedException'