BUG: Windows Closing an Application at Shutdown Orphans TMP File
ID: Q226507
|
The information in this article applies to:
-
Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0
SYMPTOMS
A Visual Basic project with an icon associated with it that is closed by shutting down Windows (either when Windows actually reboots or when the user logs off) leaves a .TMP file in the TEMP directory. The file will be between 1.5K and 11K bytes in size, and will remain in the TEMP directory until it is manually deleted. The file name will typically begin with a '~' (tilde).
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONSteps to Reproduce Behavior
-
Open a new Visual Basic Standard EXE project. Form1 is created by default.
-
Set the Icon property of Form1 to any icon file.
-
On the File menu, click Make EXE to create an executable. Close the Visual Basic Design Environment (IDE).
-
Open Windows Explorer and display the \Windows\Temp directory. Position the pane on the right side so that last file is visible. Note its name.
-
Run the EXE that you just created and examine the contents of the Temp directory. The last file should be a different file with a .TMP extension.
-
Using the control box in the right-hand corner of Form1, close the application.
-
Examine the temp directory in Windows Explorer. The .tmp file no longer exists.
-
Run the application again. Note the name of the new file in your temp directory.
-
Exit Windows by logging off, and then log back on.
-
Open Windows Explorer and examine the Temp directory. The file you noted still exists.
Additional query words:
Keywords : kbVBp600bug kbGrpVB
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
|