Re: C++ client question

2013-06-27 Thread HrochL
Hi Gordon, this is exactly what I wanted to get. I tried to do it through a pointer to a Session and it just did not work: class MySender { private: Connection *pConn; Session *pSess; public: MySender() {pConn = NULL; pSess = NULL;} ~MySender() { if (pConn != NULL) delete pConn;}

Re: C++ client question

2013-06-27 Thread Gordon Sim
On 06/27/2013 02:37 PM, Petr Parýzek wrote: Hi, I was try to encapsulate qpid client into this simple class class MySender { private: Connection *pConn; public: MySender() {pConn = NULL;} ~MySender() { if (pConn != NULL) delete pConn;} void Send(const char *Addr, const char *M

Re: C++ client question

2013-06-27 Thread Pavel Moravec
Hi Petr, just a guess: aren't you destroying instance of your class meantime? I.e. having declared in a block and trying to use its Session outside the block or so? Can you access the instance of your class and its connection at the place when calling Send() method for the second time? Btw. y

Re: C# client question

2010-12-20 Thread Adam Kaminiecki
Hi, Can anybody tell my after 60sec always get an error "Connection lost" I'm using qpid C++ broker 0.8 and .net client qpid-dotnet-0-10-0.8. I'm creating session like above: session = connections.CreateSession(0); Regards,

Re: C# client question

2010-12-17 Thread Adam Kaminiecki
Guys again two more question :) how to run client in failover mode? connections.CreateSession(10); time declared in Createsession is for what? If it's inactive then close? or always when time count down to 0 I need to reconnect?? Any example will be very helpfull. Regards, Adam W dn

RE: C# client question

2010-12-16 Thread Steve Huston
Did you try the Receiver's get method? -Steve -- Steve Huston, Riverace Corporation Total Lifecycle Support for Your Networked Applications http://www.riverace.com > -Original Message- > From: Adam Kaminiecki [mailto:ada...@dgt.com.pl] > Sent: Thursday, December 16, 2010 4:56 AM > To:

Re: C# client question

2010-12-16 Thread Adam Kaminiecki
Thanks a lot I'm going to try it!! :) One more question connections.CreateSession(10); time declared in Createsession is for what? If it's inactive then close? or always when time count down to 0 I need to reconnect?? W dniu 2010-12-16 12:36, Chuck Rolke pisze: Hi Adam, In the .NET Binding

Re: C# client question

2010-12-16 Thread Chuck Rolke
Hi Adam, In the .NET Binding there is nothing like that directly. However, its pretty easy to do. Create a connection to the broker. Then create a receiver that gets to the queue you want by specifying the queue's address. Finally Fetch() a message from that queue. From the examples the code looks