[Front] [Prev Chapter] [Next Chapter]

Chapter 26 Running IPX and SPX Applications in a Task-Switching Environment

Introduction

Task Switching in DOS

Task Switching in MS Windows

Using Command Line Parameters with TBMI2 or TASKID

Troubleshooting TBMI2


Introduction

The NetWare® task-switching files provide the data buffers needed to support IPX and SPX requests made by applications running in a DOS session. You may need this support if you use a DOS task switcher, or if you switch DOS sessions within MS Windows in standard or real mode. If your application does require the NetWare task-switching files and you do not use them, the session fails and your computer may hang.

This chapter describes how to use the NetWare task-switching files, and gives advice about which parameters to review in NET.CFG if problems arise while you are using these files.

NOTE: If you are not sure whether your application needs task-switching support, go ahead and run the task-switching files; they use only a small amount of memory. After running the application, enter the command line parameter /D and look at the number in the "Far Call Usage" field. If this number is zero, your application has not used the task-switching files, so you can run it without them.

Task Switching in DOS

You must use the NetWare task-switching files if

NOTE: The term "switching" is used here to refer to task switching, whereby background tasks are suspended, rather than to multitasking. If you run the DR-DOS Task Manager as a multitasker, you do not need to use the NetWare task-switching files described in this chapter. Refer to Chapter 13, "Multitasking and Task Switching," for a description of task switching and multitasking.

To use the NetWare task-switching files in DOS

1. At the system prompt, type

TBMI2 <Enter>

2. Start the DR-DOS task switching software.

Task Switching in MS Windows

The NetWare task-switching files help non-MS Windows IPX and SPX programs work in a task-switching environment.

You must use the task-switching files if

Do not use the task-switching files if you will not be switching between DOS sessions, or if you are running in enhanced mode.

If you are running MS Windows 3.0, see the following section "Task Switching with MS Windows 3.0." If you are running MS Windows 3.1, see "Task Switching with MS Windows 3.1" on page 26-3.

Task Switching with MS Windows 3.0

The task-switching files for MS Windows 3.0 are TBMI2.COM and TASKID.COM.

Load TBMI2 at the command line before you begin MS Windows; load TASKID in Windows after opening a system prompt.

1. At the system prompt, type

TBMI2 <Enter>

2. Start MS Windows.

3. Start a DOS session.

4. At the new system prompt, load TASKID. Type

TASKID <Enter>

For each system prompt you open, repeat Step 5 before running an application from that prompt.

5. When you close a DOS session with the EXIT command, unload TASKID by typing

TASKID /U <Enter>

WARNING: If you do not unload TASKID before you close the session, your computer may hang. You do not need to unload TBMI2 after you exit MS Windows unless you want to free memory.

Task Switching with MS Windows 3.1

The task-switching file for MS Windows 3.1 is TBMI2.COM.

Load TBMI2 at the command line before you begin MS Windows.

1. At the system prompt, type

TBMI2 <Enter>

2. Start MS Windows.

Using Command Line Parameters with TBMI2 or TASKID

You can use any of the following command line parameters with TBMI2 or TASKID.
Table 26-1
TBMI2 or TASKID Command Line Options

Option

Description

/? or /H

Displays help text.

/Cfilename

Specifies an alternative configuration file that TBMI2 should use; the default is NET.CFG. Do not put a space between /C and the filename. For example, you would type TBMI2/CTBMI2.CFG <Enter> at the system prompt.

/D

Displays diagnostic information.

/I

Displays version information.

/U

Unloads TBMI2 after you exit MS Windows.

Troubleshooting TBMI2

If you have problems while using TBMI2, you may need to change configuration parameters in the NET.CFG file. View configuration parameters by typing "TBMI2 /D" at the system prompt, and check the values associated with



[Front] [Prev Chapter] [Next Chapter]

yourEmail@xyzcorp.com
Copyright © 1993, 1997, 1998 Caldera, Inc. All rights reserved.