ID: Q194769
The information in this article applies to:
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"
A code block is not terminated before the Visual J++ Form Designer code block starts.
Click OK on the dialog box and terminate the code block before attempting to save the .java file again.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
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.
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