Mistakenly Adding VB .TMP File to Project Causes Windows UAE

ID Number: Q76633

1.00

WINDOWS

buglist1.00

Summary:

Visual Basic creates scratch files that have a .TMP extension.

Mistakenly adding one of these files to a project will result in

Visual Basic generating an "Unrecoverable Application Error" (UAE)

message. These files are for use only by the Visual Basic programming

environment and should not be added to a project as a file.

This information applies to Microsoft Visual Basic programming system

version 1.0 for Windows. Microsoft will consider preventing this

UAE instance in future versions of Visual Basic.

More Information:

The temporary files that Visual Basic creates are placed in a

directory as specified by the environment variable TMP in the

AUTOEXEC.BAT file (for example, SET TMP=C:\TEMP). Visual Basic

automatically deletes these temporary files when you quit the VB.EXE

development environment. You can safely delete these scratch files

once Visual Basic is no longer running.

Steps to Reproduce Problem

--------------------------

1. Start a new Project.

2. Select the FORM1.FRM file on the project window, and from the File

menu, choose Remove.

3. From the File menu, choose Add. Note: By default, the Add File

dialog box proposes *.FRM, *.BAS, or *.VBX.

4. Change the file name to *.TMP

5. Change to the TEMP directory for the system (as set by the TMP

environment variable).

Click on any file named ~VB****.TMP, where the asterisk may be any

character and ~ is a tilde.

As soon as it loads, the application will display the "Unrecoverable

application Error" message and quit.

Additional reference words: 1.00