Bug 703186 - Some C# examples do not enable to specify the connection options
Summary: Some C# examples do not enable to specify the connection options
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-sdk
Version: 2.0
Hardware: Unspecified
OS: Windows
medium
medium
Target Milestone: ---
: ---
Assignee: Chuck Rolke
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-09 15:16 UTC by Petra Svobodová
Modified: 2020-05-22 14:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-22 14:35:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Petra Svobodová 2011-05-09 15:16:33 UTC
Description of problem:

Below listed C# examples does not allow to specify connection options; they cannot read them (parameter "options.ConnectionOptions" is not assigned in the constructor calling during creation of the Connection object).

csharp.direct.receiver
csharp.direct.sender
csharp.example.declare_queues
csharp.example.helloworld
csharp.map.receiver

Version-Release number of selected component (if applicable):
qpid-cpp-*-2.0.0.4.zip

How reproducible:
100%

Steps to Reproduce:
1. Unpack and compile the package 
2. Try to assign connection options for some of the applications; see "Additional Info" part

  
Actual results:
It is not possible to assign the connection options.

Expected results:
It should be possible to assign the connection options.

Additional info:

See the command line transcript and compare:

C++ example - correct behaviour:
C:\qpid\\examples\messaging\Release\map_receiver.exe username@xx ADDR;{create:sender,delete:receiver} {password:pswd}
{colours:[red, green, white], id:987654321, name:Widget, percent:0.98999999999999999, uuid:37165abb-53d8-4c36-a4cc-09603d74c35b}

C# example - incorrect behaviour:
C:\qpid\bin\csharp.map.receiver.exe username@xx ADDR;{create:sender,delete:receiver} {password:pswd}
Unhandled Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Org.Apache.Qpid.Messaging.examples.MapReceiver.Main(String[] args) in c:\qpid\dotnet_examples\examples\csharp.map.receiver\csharp.map.receiver.cs:line 37


Note You need to log in before you can comment on or make changes to this bug.