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 » User Exits » User exit not valid. return code was 536895861

Post new topic  Reply to topic
 User exit not valid. return code was 536895861 « View previous topic :: View next topic » 
Author Message
turash
PostPosted: Mon Jul 07, 2008 1:07 pm    Post subject: User exit not valid. return code was 536895861 Reply with quote

Newbie

Joined: 07 Jul 2008
Posts: 3

Server OS : Windows 2000
MQ Version 6.0
dll created in : VC++ 2008

Based on the instruction provided in the forum on To all newbie MQ Exit developers


I have compiled the c program in VC++ 2008 express and created a test.dll

and copied in the following path
C:\Program Files\IBM\WebSphere MQ\exits

using MQ explorer. I have provided the exit name in "security exit name" of my sender channel


I am getting following error message once i start the channel

The system could not dynamically load the library C:\Program Files\IBM\WebSphere MQ\exits\test.dll. The system return code was 536895861. The queue manager will continue without this module.

This message applies to Windows NT and Windows 2000 systems only. The dynamically loadable file C:\Program Files\IBM\WebSphere MQ\exits\test.dll failed to load correctly due to an internal error. The MQ error recording routine has been called.

Check that the file has not been corrupted then use the standard facilities supplied with your system to record the problem identifier, and to save the generated output files. Contact your IBM support center. Do not discard these files until the problem has been resolved.[url][/url]
Back to top
View user's profile Send private message
sami.stormrage
PostPosted: Tue Jul 08, 2008 8:00 am    Post subject: Reply with quote

Disciple

Joined: 25 Jun 2008
Posts: 186
Location: Bangalore/Singapore

what do ur FDC's say?
_________________
*forgetting everything *
Back to top
View user's profile Send private message Yahoo Messenger
turash
PostPosted: Tue Jul 08, 2008 10:49 am    Post subject: Reply with quote

Newbie

Joined: 07 Jul 2008
Posts: 3

I am not sure

what does FDC stands for?
Back to top
View user's profile Send private message
mlr
PostPosted: Tue Jul 08, 2008 11:10 am    Post subject: Reply with quote

Novice

Joined: 29 Jun 2008
Posts: 13

there are no fdcs.
i expect the exit was not compiled properly.
Back to top
View user's profile Send private message
turash
PostPosted: Tue Jul 08, 2008 12:09 pm    Post subject: Reply with quote

Newbie

Joined: 07 Jul 2008
Posts: 3

I used VC++ 2008 Express edition to compile. Program did not gave any compilation error. security exit dll was created successfully.

I did some checking there is no FDC created in
C:\Program Files\IBM\WebSphere MQ\errors

MQ Series writes to the windows event log. Error message posted in the original post.

I even tried to contact IBM Support. they are saying

The event 6175 that you sent in means that we could not load the security exit. Namely, we could not load the dynamic link library file "C:\Program Files\IBM\WebSphere MQ\exits\
Back to top
View user's profile Send private message
JuulV
PostPosted: Tue Jul 08, 2008 3:42 pm    Post subject: Reply with quote

Apprentice

Joined: 05 Sep 2007
Posts: 28
Location: Belgium

Did you also copy the .exp and .lib files?
_________________
Juul Vanparijs
Senior Developer
Cressida Technology Ltd
Back to top
View user's profile Send private message Visit poster's website
RogerLacroix
PostPosted: Tue Jul 08, 2008 7:43 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3252
Location: London, ON Canada

Hi,
turash wrote:
dll created in : VC++ 2008

It is not a support compiler.

Please post your VC make file.

JuulV wrote:
Did you also copy the .exp and .lib files?

Why? Not required.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
falconX
PostPosted: Wed Jul 09, 2008 2:30 am    Post subject: Reply with quote

Novice

Joined: 04 Sep 2007
Posts: 18

Hi turash,

I managed to get an API Exit working using VS2005 Express, but I did have to play a bit with the project settings, before MQ would load the exit... not really sure which all are really needed, but I set:
General tab:
Configuration Type: Dynamic Library (.dll)
C/C++ tab:
Preprocessor Definitions: WIN32;NDEBUG;_CONSOLE
RunTime Library: Multi-threaded DLL (/MD)
Compile as: Compile as C Code (/TC)
Linker tab:
Module Definition file: myExit.def

And I had to create the myExit.def file myself, as follows:
LIBRARY myExit
EXPORTS EntryPoint

Hope this helps
Back to top
View user's profile Send private message
hunterKillerz
PostPosted: Thu Jul 01, 2010 7:11 pm    Post subject: Reply with quote

Apprentice

Joined: 16 Jun 2010
Posts: 40

is it possible to the program(amqsxrma.c) via Microsoft VS C++ compiler?

Can anyone teach me how to compile it to .dll files? any extra code needs to be included into it b4 compiling?
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jul 02, 2010 4:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hunterKillerz wrote:
Can anyone teach me how to compile it to .dll files? any extra code needs to be included into it b4 compiling?


We're not a training resource, and certainly not for something as advanced & potentially dangerous as exits. Exits are an advanced topic, seldom needed, and when needed are typically achieved using commercial solutions.
_________________
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 » User Exits » User exit not valid. return code was 536895861
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.