Posted: Thu Mar 27, 2008 11:51 am Post subject: MQ series and .net 2.0
Newbie
Joined: 27 Mar 2008 Posts: 1
Hi all
I feel a bit depressed because I'm loosing a lot of time trying to do something which seems obvious to me.
I wrote a C# class that creates a queue manager and:
- sends request messages creating a new queue for each request and closing it once the message has been sent
- open a reply queue to listen to incoming reply messages (the message loop runs in a separate thread than the sending thread)
The sending seems OK but when a reply message is read by the message loop and I try to call GetString, my application crashes violently with a message like "memory cannot be written"
My messages consist in approximatively 9000 bytes XML documents and I can see that after the Get method is called (just before GetString is called), the Message object's length is about 9K too
My main concern is: is the amqmdnet.dll assembly validated for 2.0 and if not does IBM plan to release a new version that supports it?
Or am I doing something wrong in my code (I can send an excerpt if needed)
Posted: Thu Mar 27, 2008 1:21 pm Post subject: Re: MQ series and .net 2.0
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
vc74 wrote:
I wrote a C# class that creates a queue manager and:
- sends request messages creating a new queue for each request and closing it once the message has been sent
- open a reply queue to listen to incoming reply messages (the message loop runs in a separate thread than the sending thread)
Why are you doing all that? Sounds like you have a memory leak. Also, why write your own class? Why not use XMS?
vc74 wrote:
My main concern is: is the amqmdnet.dll assembly validated for 2.0 and if not does IBM plan to release a new version that supports it?
So far as I know, though there has been some discussion on the subject (the search button is your friend). _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum