Exception in WHLLAPI.DLL Error
Keywords: Exception in WHLLAPI.DLL Error
Question:
I'm having a problem.. Tried one of the examples from the Help File to test connecting to a 3270 Session=========================================== addextender('WWHLL34I.DLL') Title01 = 'Test ehllapiConnectPS()' ; Loads the RUMBA Mainframe HLLAPI Dll and uses the Enhanced interface specs. errormode(@off) ehllapiInit('EHLAPI32.DLL','',@true) ResultCode = lasterror() errormode(@cancel) TempMsg = strcat('ehllapiInit("EHLAPI32.DLL","",@TRUE) RC = ',ResultCode,@crlf) message(Title01,TempMsg) ; Assuming that a RUMBA session is running and is configured to use the ; short session name "B", we'll try to connect to it. errormode(@off) ehllapiConnectPS('B') ResultCode = lasterror() errormode(@cancel) TempMsg = strcat('ehllapiConnectPS("B") RC = ',ResultCode,@crlf) message(Title01,TempMsg) ; Now we can do some screen-scraping work, etc... exitCame up with the folowing error dialogException in WHLLAPI.DLL Invalid Return Code Pointer. Parameter Cannot be NULL.Windows = 98
WinBatch = 2002f
Terminal Emulation = Personal Communications 5.0My terminal emulator is set up to use a short HLLAPI session name:
Short Names = Yes (OBJECT Rexx uses A,B etc)
Any ideas??
Answer:
Nothing comes to mind immediately... That's some sort error message displayed by the O.S. or perhaps by the terminal emulator in response to some sort of pointer fault. Is that actually showing up in some sort of message box?Here are some questions to research:
- What is the name of the EHLLAPI DLL file for your terminal emulator, and is it located on the system search path?
- Are you calling ehllapiInit() properly, and using the correct value for 16/32 bit interface structures?
- Have you tried enabling DebugTrace() in your script so that we can get a trace of what's going on in the script up to the last line that was successfully executed before the failure occurred?
- Make sure that "EHLLAPI.DLL" is the name of the EHLLAPI interface DLL that you specify in the call to ehllapiInit(). Finally, report back on any errors that occur. If no errors occur, then it is working OK. You won't see any visible results in the terminal emulator if that script snippet runs OK. However, the script will display a message boxe to indicate the success/failure of the ehllapiConnectPS() function call.
- If this is Attachmate that you're working with then it is going to use a 16-bit Standard HLLAPI data structure [internally], so be sure to honor this requirement when using ehllapiInit().
Answer:
Seems to be a problem with IBM Personal Communications [v5.6?] from IBM. We're working on it.