Microsoft KB Archive/328895

= Access Violation in Win5250.exe During AS/400 Query =

Article ID: 328895

Article Last Modified on 9/27/2005

-

APPLIES TO


 * Microsoft SNA Server 4.0
 * Microsoft SNA Server 4.0 Service Pack 1
 * Microsoft SNA Server 4.0 Service Pack 2
 * Microsoft SNA Server 4.0 Service Pack 3
 * Microsoft SNA Server 4.0 Service Pack 4
 * Microsoft Host Integration Server 2000 Standard Edition

-



This article was previously published under Q328895



SYMPTOMS
An access violation in the Sw5250::parse_stream function may occur in the 5250 Client (Win5250.exe).

This problem has been reported to occur when using the IBM AS/400 Work with Queries (wrkqry) command to create a query. The problem might occur under different circumstances.

If DrWtsn32.exe is enabled as the default debugger on the system running the 5250 Client, the DrWtsn32.log will be updated with information similar to the following: Application exception occurred: App: obj\i386\win5250.exe (pid=1272) When: 9/5/2002 @ 13:54:24.506 Exception number: c0000005 (access violation)

[data omitted...]

function: Sw5250::parse_stream 0102478f 90              nop 01024790 53              push    ebx 01024791 8a5c2408        mov     bl,[esp+0x8]                 ss:00aed283=?? 01024795 56              push    esi 01024796 8bf1            mov     esi,ecx 01024798 f6c308          test    bl,0x8 0102479b 740d            jz      NumKeyDefs+0x2ce4 (0102d2aa) 0102479d 8b8e584c0000    mov     ecx,[esi+0x4c58]       ds:00736c00=0073b640 010247a3 6a01            push    0x1 010247a5 8b01            mov     eax,[ecx]              ds:0073b640=40404040 FAULT ->010247a7 ff5040          call    dword ptr [eax+0x40]   ds:40e81612=???????? 010247aa f6c304          test    bl,0x4 010247ad 7407            jz      NumKeyDefs+0x2cf0 (0102d2b6) 010247af 8b16            mov     edx,[esi]              ds:00731fa8=01002534 010247b1 8bce            mov     ecx,esi 010247b3 ff5218          call    dword ptr [edx+0x18]   ds:00aed2a6=???????? 010247b6 5e              pop     esi 010247b7 5b              pop     ebx 010247b8 c20400          ret     0x4 010247bb 90              nop 010247bc 90              nop 010247bd 90              nop


 * > Stack Back Trace <*

FramePtr ReturnAd Param#1 Param#2  Param#3  Param#4  Function Name 0006FCDC 010243D8 00731FA8 0023FD28 0073D3DD 0073D3D4 win5250!Sw5250::parse_stream (FPO: [EBP 0x00731FA8] [0,2,4]) 0006FCF8 01023B09 00000002 0023FD28 01010DDB 0073D108 win5250!Sw5250::cl_u_op (FPO: [EBP 0x0023FD28] [0,1,4]) 0006FD04 01010DDB 0073D108 00000000 0073D0D0 0073D108 win5250!Sw5250::ALIGN_CUR (FPO: [2,0,1]) 0006FD18 010109FD 0073D3D4 64C82F39 0073D3D4 0073D108 win5250!DataProtocol::StartSessionMenuCommand (FPO: [0,0,2]) 0006FD38 64C818A0 00000000 64C840E8 00414000 0073D108 win5250!DataProtocol::RealizeConfig (FPO: [EBP 0x64C82F39] [0,2,4]) 0006FD40 64C840E8 00414000 0073D108 0023ED60 01007F9A wswappc!WSwAppc::VerbCompleted (FPO: [2,0,1]) 0006FDA8 6C371018 00000001 01031254 0103125C 00074288 wswappc!WSwAppc::GetResourcesList (FPO: [EBP 0x0073D108] [4,7,4]) 0073D108 00000000 00000000 00000000 00737D30 00743E18 !Ordinal3030



CAUSE
A particular function, which is used to determine whether the cursor position that is specified in a 5250 data stream command is valid, incorrectly compares the specified row value with the 5250 display width. The incorrect comparsion resulted in the access violation described in the &quot;Symptoms&quot; section.



Service pack information
To resolve this problem, obtain the latest service pack for Microsoft Host Integration Server 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

328152 How to obtain the latest service pack for Host Integration Server 2000

Hotfix information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.   Date         Time   Version      Size    File name --  02-Oct-2002  19:17  5.0.0.900    258,320 Win5250.exe

Note Because of file dependencies, the most recent fix that contains the previous files may also contain additional files.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

This problem was corrected in Microsoft Host Integration Server 2000 Service Pack 2.

Additional query words: HIS 2000

Keywords: kbbug kbfix kbqfe kbhotfixserver KB328895

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.