What does this exception mean? (IE what am I doing wrong)
" try { AmqpException::Throw(*reinterpret_cast<amqp_channel_close_t *>( incoming_frame.payload.method.decoded)); } catch (AmqpException &) { MaybeReleaseBuffersOnChannel(incoming_frame.channel); throw;"
Here's the code for my publisher: https://pastebin.com/4iR2898B And here's the code for my receiver: https://pastebin.com/Z7PVMwJ1
It crashes when I run the receiver and then the publisher. Running the publisher doesn't work, as the receiver never receives a message.
hey @Sourpowerpete what exception the code throw, as I am now facing a problem while establishing the connection
Channel::ptr_t connection = Channel::Create("127.0.0.1", 5672, "code_client", "1234");
It throws Socket error occurred.
Did you install SimpleAmqp from scratch or installed it via NuGet in VS?
I built it from scratch using the instructions on the front page.
Do you have any idea why do I get such error?, I build it from scratch as well.
Calling the what() method on the thrown exception will give you more information about what the exception being thrown.
Likely the error is that queue = 'queue' is being declared as an exclusive queue queue in both the publisher and receiver. This causes the 2nd one to declare the queue to fail.