| Author | 
		  Message
		 | 
		
		  | turash | 
		  
		    
			  
				 Posted: Mon Jul 07, 2008 1:07 pm    Post subject: User exit not valid. return code was 536895861 | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sami.stormrage | 
		  
		    
			  
				 Posted: Tue Jul 08, 2008 8:00 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Disciple
 
 Joined: 25 Jun 2008 Posts: 186 Location: Bangalore/Singapore 
  | 
		  
		    
			  
				what do ur FDC's say? _________________ *forgetting everything  * | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | turash | 
		  
		    
			  
				 Posted: Tue Jul 08, 2008 10:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 07 Jul 2008 Posts: 3
  
  | 
		  
		    
			  
				I am not sure
 
 
what does FDC stands for? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mlr | 
		  
		    
			  
				 Posted: Tue Jul 08, 2008 11:10 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 29 Jun 2008 Posts: 13
  
  | 
		  
		    
			  
				there are no fdcs. 
 
i expect the exit was not compiled properly. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | turash | 
		  
		    
			  
				 Posted: Tue Jul 08, 2008 12:09 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JuulV | 
		  
		    
			  
				 Posted: Tue Jul 08, 2008 3:42 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Tue Jul 08, 2008 7:43 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | falconX | 
		  
		    
			  
				 Posted: Wed Jul 09, 2008 2:30 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hunterKillerz | 
		  
		    
			  
				 Posted: Thu Jul 01, 2010 7:11 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Jul 02, 2010 4:46 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |