BUG: Saving Form Designer Code Throws a ComFailException

ID: Q194769

The information in this article applies to:

SYMPTOMS

Attempting to save a .java file that derives from com.ms.wfc.ui.Form sometimes throws a ComFailException.

The dialog box titled "Microsoft Development Environment" appears. The dialog box contains the following text:

   "com.ms.wfc.core.WFCException: Unable to write to the form file. Check
   that you have sufficient disk space and that the file is not read-only.
   --> com.ms.com.ComFailException: (0x80004005) Unspecified error"

CAUSE

A code block is not terminated before the Visual J++ Form Designer code block starts.

RESOLUTION

Click OK on the dialog box and terminate the code block before attempting to save the .java file again.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

1. In Visual J++ version 6.0, go to the File menu, click New Project,

   select Visual J++ Projects, Applications, Windows Application, and click
   Open.

2. In the Project Explorer window, click the plus sign beside the
   project name and double-click on Form1.java. This opens the Designer
   View of Form1.

3. Double-click the gray area of Form1, which creates a Form1_click
   method in the code and switches to the code view of Form1.java.

3. Delete the '}' at the end of the Form1_click method, creating an open
   block that doesn't terminate before the designer code begins.

4. Press Ctl+S or go to the File menu and select Save to save Form1.java.

Outcome: ComFailException as stated above.

Expected: The Save should work fine.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site:

   http://support.microsoft.com/support/visualj/ 
   http://support.microsoft.com/support/java/ 

(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Adele Hunter, Microsoft Corporation.

Additional query words: kbDSupport

Keywords          : kbide kbVJ600bug 
Version           : WINDOWS:6.0
Platform          : WINDOWS
Issue type        : kbbug
Solution Type     : kbpending

Last Reviewed: March 16, 1999