Microsoft KB Archive/140350

= Deleting .frx File Causes Visual Basic to Exit Abnormally =

Article ID: 140350

Article Last Modified on 11/18/2003

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q140350



SUMMARY
If you delete the .frx file of a form containing a ListView control that has at least two column headers, you will encounter the following error when attempting to reload the project in the Visual Basic design environment.

This program has performed an illegal operation and will be shut down.

If the problem persists, contact the program vendor.



MORE INFORMATION
Visual Basic stores binary information vital to the functionality of the form and its child controls in the .frx files.

The .frx files should never be deleted or modified manually.

Steps to Reproduce the Problem
 Start Visual Basic 4.0 (32-bit) or on the File menu, click New Project (ALT, N, P) if Visual Basic is already running. Form1 is created by default. Add a ListView control to Form1. Right click the ListView control, click the Column Headers tab. Insert at least two column headers. Click OK to exit the dialog box. Save the project. In the File Manager or the Explorer delete the .frx file for Form1. Reopen the project in Visual Basic 4.0 (32-bit). Open Form1, by double-clicking it in the Project window. You will receive the following warning:

Errors during load. Refer to ' \ .log' for details.

</li> Close Form1. As a result, an application error occurs and Visual Basic terminates.</li></ol>

<div class="resolution_section">

RESOLUTION
The .frx files should never be deleted or modified manually. Deleting or modifying the .frx file results in Visual Basic acting unpredictably when accessing the associated form.

Additional query words: kbVBp400 kbdss kbVBp kbDSupport kbNoKeyWord

Keywords: KB140350

-

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

© Microsoft Corporation. All rights reserved.