ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQ series and .net 2.0

Post new topic  Reply to topic
 MQ series and .net 2.0 « View previous topic :: View next topic » 
Author Message
vc74
PostPosted: Thu Mar 27, 2008 11:51 am    Post subject: MQ series and .net 2.0 Reply with quote

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)

Many thanks in advance

Vincent
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 27, 2008 1:21 pm    Post subject: Re: MQ series and .net 2.0 Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQ series and .net 2.0
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.