From: muhlig@USCTOUX1.CTO.US.EDU.PL (Maciek Uhlig)
Newsgroups: comp.protocols.tcp-ip.ibmpc
Subject: Re: WinQVT Problems Solved (I wouldn't be so happy)
Date: 28 Jan 93 16:50:25 GMT
Distribution: world
Organization: The Internet
X-Unparsable-Date: Thu, 28 Jan 93 16:15:42 cet

Solution of the problem has been reported by Brian Thomas; however 
it's not the final solution. I experience the same error and the error
conditions are quite different. Let's see:


> 1. When WinQVT is invoked from Windows, before the console comes up,
>    the following Windows message box appears:
> 
>    ---------------------------------------------------------------------
>    |                           WNQVTNET                                |
>    |                                                                   |
[deleted]
>    |          Close                                 Ignore             |
>    ---------------------------------------------------------------------
> 
>    If the "Ignore" button is chosen, the application "appears" to start
>    normally, and the CONSOLE comes up, followed by the auto_start
>    sessions.
> 
>    If the "Close" button is picked, the application produces the
>    following:
> 
>    ---------------------------------------------------------------------
>    |                       Application Error                           |
>    |                                                                   |
>    |           WNQVTNET caused a General Protection Fault in           |
>    |                 module WNNETDLL.DLL at 0001.8B8D.                 |
>    |                                                                   |
>    |                                                                   |
>    |                            Close                                  |
>    ---------------------------------------------------------------------
> 
>    THE SOLUTION:
>    -------------
>    PKTMUX documentation describes how to set up your AUTOEXEC.BAT file
>    for various situations.  The section on "Windows 3 Applications"
>    describes how mine SHOULD HAVE BEEN set up.  My order was DIFFERENT.
>    The CORRECT order follows:
> 
>         IBMTOKEN 0x60      ;load packet driver
>         PKTMUX 2           ;support 2 channels
>         PKTDRV             ;PKTDRV for PC/TCP to use
>         PKTDRV 7F          ;PKTDRV for WinQVT to use
>         PKTINT             ;WinQVT Packet interface
> 
>    Note that QVTNET.INI file has "packet_vector=7F".
> 

Well, let's take a look into my configuration:

3c503 0x60 2 0x300 1
pktint
rem windows 3.1, then wnqvtnet 3.16
win

Note I don't use pktmux and pktdrv. The order in which drivers appear
is correct. QVTNET.INI shows packet_vector=60.
The error appears as described above (during start of qvtnet).
It can be invoked also by clicking 'reread qvtnet.rc' and 'configure terminal
ok'. 
More, on the other PC (486 not 386) with DOS 5.0 and WINDOWS 3.1
the error appears too. As usual during start of qvtnet, but - surprisingly -
can be invoked by clicking 'reread qvthost.rc'. 'reread qvtnet.rc' and
'configure terminal ok' go quite smoothly.
So, it seems to me there is a bug in wnqvtnet (most probably uninitialized
variable) which cause the application to behave randomly in different
environments.
My mail to djpk@troi.cc.rochester.edu was not answered.
For those who are interested in details Dr. Watson log of application
error follows.
Maciek


Start Dr. Watson 0.80 - Fri Jan 22 12:11:14 1993
****************************************************************************
Dr. Watson 0.80 Failure Report - Fri Jan 22 12:11:47 1993
WNQVTNET had a 'Null Selector (Write)' fault at WNNETDLL SsetHomedir+004d
$tag$WNQVTNET$Null Selector (Write)$WNNETDLL SsetHomedir+004d$mov     byte ptr es:[bx], 00$Fri Jan 22 12:11:47 1993

CPU Registers (regs)
ax=0000  bx=0000  cx=0000  dx=0000  si=dbac  di=01fd
ip=8b8d  sp=d5e4  bp=d670  O- D- I+ S+ Z- A+ P+ C- 
cs = 25af  806794e0:ab1f Code Ex/R
ss = 25c7  80644000:fbff Data R/W 
ds = 2597     5d920:649f Data R/W 
es = 0000         0:0000 Null Ptr 

CPU 32 bit Registers (32bit)
eax = 00000000  ebx = 00000000  ecx = 00000000  edx = 00000000
esi = 0000dbac  edi = 000001fd  ebp = 0000d670  esp = 8001d5d4
fs = 0000         0:0000 Null Ptr 
gs = 0000         0:0000 Null Ptr 
eflag = 00000202

System Info (info)
Windows version 3.10
Retail build
Windows Build 3.1
Username Maciek Uhlig                            
Organization Computer Center, Silesian University                      
System Free Space 10825184
Stack base 41092, top 56302, lowest 53762, size 15210
System resources:  USER: 80% free, seg 07b7  GDI: 80% free, seg 060f
LargestFree 9682944, MaxPagesAvail 2364, MaxPagesLockable 627
TotalLinear 2940, TotalUnlockedPages 634, FreePages 197
TotalPages 847, FreeLinearSpace 2394, SwapFilePages 3068
Page Size 4096
6 tasks executing.
WinFlags -
  80386 or 80386 SX
  Enhanced mode
  Protect mode

Stack Dump (stack)
Stack Frame 0 is WNNETDLL SsetHomedir+004d    ss:bp 25c7:d670
25af:8b81  8e c2                 mov	es, dx
25af:8b83  8b d8                 mov	bx, ax
25af:8b85  89 9e ff76            mov	[bp+ff76], bx
25af:8b89  8c 86 ff78            mov	[bp+ff78], es
(WNNETDLL:SsetHomedir+004d)
25af:8b8d  26 c6 07 00           mov	byte ptr es:[bx], 00
25af:8b91  8d 47 01              lea	ax, [bx+01]
25af:8b94  89 86 ff76            mov	[bp+ff76], ax
25af:8b98  8c 86 ff78            mov	[bp+ff78], es

Stack Frame 1 is WNQVTNET _SreadCfgini+0011   ss:bp 25c7:d806
144f:0003  b8 018e               mov	ax, 018e
144f:0006  9a 00f0 261f          callf	261f:00f0
144f:000b  56                    push	si
144f:000c  9a 8b40 25af          callf	25af:8b40
(WNQVTNET:_SreadCfgini+0011)
144f:0011  b8 0b34               mov	ax, 0b34
144f:0014  b9 25cf               mov	cx, 25cf
144f:0017  51                    push	cx
144f:0018  50                    push	ax

Stack Frame 2 is WNQVTNET _vtConsoleCommand+087c ss:bp 25c7:d89c
Stack Frame 3 is WNQVTNET ConsoleWndProc+0ccc ss:bp 25c7:d906
Stack Frame 4 is USER 1:2817                  ss:bp 25c7:d918
Stack Frame 5 is NWIN 2:1864                  ss:bp 25c7:d93e
Stack Frame 6 is NWIN 2:026e                  ss:bp 25c7:d956
Stack Frame 7 is USER 1:27bb                  ss:bp 25c7:d970
Stack Frame 8 is WNQVTNET _process_message+00cc ss:bp 25c7:d97e
Stack Frame 9 is WNQVTNET WINMAIN+088f        ss:bp 25c7:dbc0
Stack Frame 10 is WNQVTNET __stubmain+0023     ss:bp 25c7:dbd2
Stack Frame 11 is WNQVTNET __astart+00a7       ss:bp 25c7:dbec
System Tasks (tasks)
Task      NDW, Handle 1407, Flags 0001, Info    5264 10-08-92 11:10
  FileName C:\NDW\NDW.EXE
Task    NTASK, Handle 2857, Flags 0001, Info   10848 10-08-92 11:11
  FileName C:\NDW\NTASK.EXE
Task  NDWMAIN, Handle 13c7, Flags 0001, Info    9888 10-08-92 11:11
  FileName C:\NDW\NDWMAIN.EXE
Task  PROGMAN, Handle 0647, Flags 0001, Info  115312 03-10-92  3:10
  FileName C:\WINDOWS\PROGMAN.EXE
Task DRWATSON, Handle 1437, Flags 0001, Info   26864 03-10-92  3:10
  FileName C:\WINDOWS\DRWATSON.EXE
Task WNQVTNET, Handle 143f, Flags 0001, Info  332592 01-07-93 19:01
  FileName C:\QVTNET31\WNQVTNET.EXE

Attempting to continue execution at user request, Fri Jan 22 12:11:51 1993
1> test qvtnet after clicking close


+--------------------------------------------------------------------+
I    Maciej UHLIG     I Internet:    muhlig@usctoux1.cto.us.edu.pl   I
I   Computer Center   I EARN/BITNET: UHLIG@PLKTUS11       I----------I
I SILESIAN UNIVERSITY I Voice:     +48 (32) 58 82 11 (768)I CALL ME  I
I Uniwersytecka 4 St. I Voice/fax: +48 (32) 59 68 47      I  Maciek  I
I   40-007 KATOWICE   I-----------------------------------I----------I
I       POLAND        I Interested in: networking (INTERNET)         I
+--------------------------------------------------------------------+
I    "Imagine all the people sharing all the world" - John Lennon    I
+--------------------------------------------------------------------+
Newsgroups: comp.protocols.tcp-ip.ibmpc