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 » Search

 Search found 3 matches
Author Message
  Topic: Null pointer error GETting messages from a queue in... VBA
bathouin

Replies: 7
Views: 7188

PostForum: General IBM MQ Support   Posted: Mon Apr 02, 2007 10:46 am   Subject: Null pointer error GETting messages from a queue in... VBA
That's because you have your code to wait indefinitely, you should set a small wait interval, which if you do, you'll need to catch an exception thrown when there are no more messages in the queue. Or ...
  Topic: Null pointer error GETting messages from a queue in... VBA
bathouin

Replies: 7
Views: 7188

PostForum: General IBM MQ Support   Posted: Mon Apr 02, 2007 10:20 am   Subject: Null pointer error GETting messages from a queue in... VBA
I think you need to initialize the mqmessage instance before trying to get it. Try:

Set qMsg = New MQMessage
Call GetQueue(q, qMsg)



YES, brilliant, it works.

HOWEVER, on the LA ...
  Topic: Null pointer error GETting messages from a queue in... VBA
bathouin

Replies: 7
Views: 7188

PostForum: General IBM MQ Support   Posted: Mon Apr 02, 2007 9:34 am   Subject: Null pointer error GETting messages from a queue in... VBA
Hi

I'm trying to use MQ from a MS Access application. I worked long time ago with MQ under VMS, so I'm not new to the concept, but certainly to the details under Windows XP and VBA... I succeeded i ...
Page 1 of 1

Jump to:  
Protected by Anti-Spam ACP
 
 


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

Copyright © MQSeries.net. All rights reserved.