[ https://issues.apache.org/jira/browse/QPID-1734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681918#action_12681918 ]
Steve Huston commented on QPID-1734: ------------------------------------ The exception string is being trashed as it's being output. The error happens on: } catch(const std::exception& error) { std::cout << error.what() << std::endl; } error.what() returns a legit string but by the time it's output to cout the string is trashed. One note is that the whatStr in qpid::Exception is marked 'mutable' - I'm not sure if this is playing into it, or there's some race between cout and the exception being destroyed. > Garbled error messages on Windows example programs > -------------------------------------------------- > > Key: QPID-1734 > URL: https://issues.apache.org/jira/browse/QPID-1734 > Project: Qpid > Issue Type: Bug > Components: Qpid Examples > Environment: Windows XP SP3 > Visual C++ 9.0 > Reporter: Pete MacKinnon > > Some of the example programs on Windows have garbled error messages returned > from the Windows broker. > For example, the following should be an auth error from the broker: > C:\devel\redhat\mrg\qpid\qpid\cpp\examples\request-response>server > connec2t0i0o9n--mfaorr-c1e3d :1 1U:n1s3u:p5p9o rwteadr nmiencgh aBnrioskmer -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org