Author |
Message
|
TCV |
Posted: Tue May 04, 2004 9:26 am Post subject: Buffer size |
|
|
Apprentice
Joined: 21 Aug 2003 Posts: 48
|
Hi,
On the Windows platform i have insufficiant buffer size for MQ GET.How can i increase the size.
Thanks
TCV |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 04, 2004 9:27 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
By changing your code. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
TCV |
Posted: Tue May 04, 2004 9:31 am Post subject: Hi |
|
|
Apprentice
Joined: 21 Aug 2003 Posts: 48
|
Hi Jeff,
Is it the code of amqsget.c?? Could you tell me more details.
Thanks
TCV |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 04, 2004 9:38 am Post subject: Re: Hi |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
TCV wrote: |
]Could you tell me more details. |
No.
Not without more detail from you.
What program is giving you this error? Is it amqsget.c?
Are you writing code in C? Java? Perl? VB? VB.Net? C#.Net? COBOL? PL/1? REXX?
Have you read the Application Programming Guide section on getting messages? Have you looked at the comments in amqsgetc? Have you look at the description of the MQGET call in the Application Programming Guide? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue May 04, 2004 12:05 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
More details are needed in order for people to help you...however.....
If you are using VB or VB.NET you will need to make sure that the buffer definition has been populated with something in order to give it a size that is > 0. Failure to do so will result in a buffer exception being thrown.
Dim buffer as string * 1
Will suffice but remember to always check for truncated messages.
IMHO every program that issues a get should check for truncated messages. |
|
Back to top |
|
 |
TCV |
Posted: Wed May 05, 2004 12:11 pm Post subject: hi |
|
|
Apprentice
Joined: 21 Aug 2003 Posts: 48
|
The MQ is running on Windows NT.I am not sure which language gmqsget Program it uses.In the installation directory isee manu language folders.Can anyone tell me how to findout which amquget is being used.
Thanks
TC |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 05, 2004 12:14 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What are you trying to do?
If you are just trying to use amqsget from the command prompt, to retrieve a message, then you are using amqsget.c.
BUT IN A COMPILED form. If you're not a C programmer, and don't have a C compiler, then you can't change the version of amqsget you are using to use a larger buffer.
You should look at other tools to get your message for you. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|