VC++E Forms Designer Hell

Hello all,

while working on a form in my project i got the following error:

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.

Either VCProject or VCCodeModel is not ready yet. Please close designer and try again.

Hide    

at Microsoft.VisualC.CppCodeParser.Parse(TextReader codeStream)
at System.CodeDom.Compiler.CodeDomProvider.Parse(TextReader codeStream)
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)
 
what can be wrong the code compiles fine, and the program works fine when i run it, it's just the forms designer that's having problems.
 
It worked fine some minutes ago, i undoed every change i made to see if there was some line that bugged the f.d., but i still get the same error.
 
I'm currently evaluating if to migrate from BCB6 (yeah its old.. but it works sorta "fine") to VC.NET, but can't say im impressed by the tools im using....



Answer this question

VC++E Forms Designer Hell

  • salmanhasan

    Yes, this is still an issue. I have been evaluating the product for a while now and most things works quite ok but the designer is definitely the most annoying and unstable part of the IDE. It seems to live a life of its own, separated from the actual source code. Often there are no warnings or problems with compiling and running the code but still the designer launches the error screen when you try opening the form.

    I have not found any general way to resolve the problems. Sometimes it is enough to close the solution and remove the Intellisense file. Sometimes you need to rebuild, but very often nothing helps. Most strange is that occasionally a form which haven't been working for a while in the designer, starts working all of a sudden.

    I wonder if there are any tricks available to disable the part of the designer running all the underlying code, and just use it for positioning/resizing controls on the form Are there any update patches for download on the net for VS Express I have the first release version.

    / Roger


  • Scott Gurvey

    Is that still an issue

    Thanks,
    Ayman Shoukry
    VC++ Team


  • Hans Karlsen (The real one)

    As a quick fix, please do verify that no 'ref struct' preceeds the first class designer uses. Moving the struct after the first class, or to a different file (say .h that can be included) should resolve this for some.

    Regards!


  • Stark77

    Could you please log the issue at http://lab.msdn.microsoft.com/productfeedback/default.aspx so that the owners would take a look straight ahead

    Thanks in advance for taking the time to log the issue!

    Also, please make sure to post the link to you logge bug so that other folks could track the progress in getting it fixed.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • iupetre

    Have you found a way to dismiss the designer error without closing the Form.h and reopening I get a different error but the only way to get back to the designer is to close-reopen the .h file.

    I share the fear that Vis-Express is not ready for prime time. Am evaluating it versus Vis Studio .Net 2003, and so far...

     

    Glen


  • Optikal

    On a related issue, something like it still is a problem for me. See my post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=208069&SiteID=1

    I gave up on C# Express and SQL Express, and am now using Pro C# and my old SQL 2000. I do believe that it (VS Pro C#) has a similar bug, as explained in my post.

    Regards,

    G.


  • Srinivas Govada

    Ayman, I am experiencing the exact same issue, except the last line of my error messages says

    "at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadComleted(Int 32 fReload)"

    It happened a few times with VC++ 2003. I upgraded to VS2005 two weeks ago, imported my project into it, and now it's starting to do this again. Is there any recovery solution available other than recreating the form from scratch


  • sofsab

    I would log a bug as described above so that the oners could have a look. make sure to include a sample project.

    Thanks,
    Ayman Shoukry
    VC++ Team


  • g.brausi

    I tried almost everything but i still get the error, even by reopening the project.
    Couldn't fix it, will be back on it in 2006.


  • VC++E Forms Designer Hell