473,782 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

2005 IDE Form corruption

Aaarrggghhh! Maybe I've just got lucky, but until now I haven't had such a
seemingly unrecoverable form corruption error...

I have a reasonably complex form (data-binding to sub-controls, events,
etc), which was working fine... until about an hour ago... Now, although the
form works fine when playing the app, whenever I go into the form designer I
get:

==============

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.

The designer loader did not provide a root component but has not indicated
why.
Hide

at System.Componen tModel.Design.D esignSurface.ge t_View()
at
Microsoft.Visua lStudio.Shell.D esign.WindowPan eProviderServic e.CreateWindowP ane(DesignSurfa ce
surface)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Deferrab leWindowPanePro viderService.Cr eateWindowPane( DesignSurface
surface)
at
Microsoft.Visua lStudio.Design. VSDesignSurface .Microsoft.Visu alStudio.Design er.Interfaces.I VSMDDesigner.ge t_View()

============

The error is (seemingly) somewhere inside (suprise suprise)
InitializeCompo nent(), but this is too complex to present here... I guess my
question is:

"Does anybody have a clue where to start with this?"

I'm happy to start hacking the code, but with hundreds of lines it's a bit
needle/haystack. Curiously, I can *sometimes* get into the form if I have
just finished debugging, but not always - and it inevitably dies again when
I build, so not much help... I don't really fancy restarting my form from
scratch, and I seem to get the same issue with various archived VSS
copies...

Has anybody resolved this or similar before? Any common causes? (there's
little chance of me reproducing it in a "simple" version, so the question is
more general than specific).

Cheers in advance,

Marc
Dec 6 '05 #1
2 2597
For ref, I eventually got the form working again by carving huge chunks out
of the initialise method and into separate controls which are only loaded at
runtime (and not design time).

I still have no idea what the error means or why it happened...

Marc

"Marc Gravell" <mg******@rm.co m> wrote in message
news:Om******** ********@TK2MSF TNGP10.phx.gbl. ..
Aaarrggghhh! Maybe I've just got lucky, but until now I haven't had such a
seemingly unrecoverable form corruption error...

I have a reasonably complex form (data-binding to sub-controls, events,
etc), which was working fine... until about an hour ago... Now, although
the form works fine when playing the app, whenever I go into the form
designer I get:

==============

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.

The designer loader did not provide a root component but has not indicated
why.
Hide

at System.Componen tModel.Design.D esignSurface.ge t_View()
at
Microsoft.Visua lStudio.Shell.D esign.WindowPan eProviderServic e.CreateWindowP ane(DesignSurfa ce
surface)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Deferrab leWindowPanePro viderService.Cr eateWindowPane( DesignSurface
surface)
at
Microsoft.Visua lStudio.Design. VSDesignSurface .Microsoft.Visu alStudio.Design er.Interfaces.I VSMDDesigner.ge t_View()

============

The error is (seemingly) somewhere inside (suprise suprise)
InitializeCompo nent(), but this is too complex to present here... I guess
my question is:

"Does anybody have a clue where to start with this?"

I'm happy to start hacking the code, but with hundreds of lines it's a bit
needle/haystack. Curiously, I can *sometimes* get into the form if I have
just finished debugging, but not always - and it inevitably dies again
when I build, so not much help... I don't really fancy restarting my form
from scratch, and I seem to get the same issue with various archived VSS
copies...

Has anybody resolved this or similar before? Any common causes? (there's
little chance of me reproducing it in a "simple" version, so the question
is more general than specific).

Cheers in advance,

Marc

Dec 7 '05 #2
I have had a very similar experience - I converted a solution from VS2003 to
VS2005 and everything seemed just right. The application converted without a
problem, and it ran fine. But once I started modifying a form I started have
some problems in the InitializeCompo nent() method also. I had to back up
and continue developing it in VS2003 for the time being.

Jeff
"Marc Gravell" wrote:
Aaarrggghhh! Maybe I've just got lucky, but until now I haven't had such a
seemingly unrecoverable form corruption error...

I have a reasonably complex form (data-binding to sub-controls, events,
etc), which was working fine... until about an hour ago... Now, although the
form works fine when playing the app, whenever I go into the form designer I
get:

==============

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.

The designer loader did not provide a root component but has not indicated
why.
Hide

at System.Componen tModel.Design.D esignSurface.ge t_View()
at
Microsoft.Visua lStudio.Shell.D esign.WindowPan eProviderServic e.CreateWindowP ane(DesignSurfa ce
surface)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Deferrab leWindowPanePro viderService.Cr eateWindowPane( DesignSurface
surface)
at
Microsoft.Visua lStudio.Design. VSDesignSurface .Microsoft.Visu alStudio.Design er.Interfaces.I VSMDDesigner.ge t_View()

============

The error is (seemingly) somewhere inside (suprise suprise)
InitializeCompo nent(), but this is too complex to present here... I guess my
question is:

"Does anybody have a clue where to start with this?"

I'm happy to start hacking the code, but with hundreds of lines it's a bit
needle/haystack. Curiously, I can *sometimes* get into the form if I have
just finished debugging, but not always - and it inevitably dies again when
I build, so not much help... I don't really fancy restarting my form from
scratch, and I seem to get the same issue with various archived VSS
copies...

Has anybody resolved this or similar before? Any common causes? (there's
little chance of me reproducing it in a "simple" version, so the question is
more general than specific).

Cheers in advance,

Marc

Dec 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3051
by: Douglas Buchanan | last post by:
Buttons don't work if form is opened on startup A2k If 'frmMain' is set to open by default at startup none of the buttons work. If 'frmMain' is opened from the database window then all the buttons work. The form's name ('frmMain') is selected from in the Startup dialog box.
2
1542
by: lsloan | last post by:
Hi! I have a reoccuring problem with one of my databases where forms will occasionally become corrupted. Since I have backup copies of my production databases, it is easy to recover from using the 'standard' methodology discussed in the various threads that address this issue. However, I would like to prevent the problem from happening in the first place. This has occured to different forms in my database and it strikes
2
2114
by: maddman | last post by:
I have an odd problem with my database, and was hoping someone could point me at the problem. We have an access database that is used by several people to input data. Users have reported some of the records in their forms (Datasheet view) are showing up as "#Deleted", though no one should be deleting records from here. Further, the messages show up only on certain users' screens. Is this a result of corruption from having multiple...
2
1340
by: Jeff | last post by:
raggle fraggle and so on Why does this happen? I had just entered some code and when I saved the form, through the menu option, Access nicely shutdown and lost the changes. I know, I should save often, but I was on a roll. But why does it do this. Sometimes when I just close a form in design mode with the close box it does this. Closes the whole instance of Access. Anybody got any ideas as it is so intermittent and I can't find...
23
2582
by: Dave G | last post by:
Since upgrading one of my clients from A97/W2000 to A2003/XP they have suffered no end of data corruption problems, mainly involving one of the main tables. The corruption can result in one record's fields turning into chinese characters. On running the compact/repair I can see that the corruption may be deeper than I expected because sometimes indexes are missing and need to be replaced. I used to think that overuse of 'ctrl-alt-delete'...
4
1348
by: Bob Darlington | last post by:
I have an Access 2002 application with approx 170 forms. Security permissions are controlled via the back end tables. In the front end (mde), the 'Users' group has access to all forms. Yesterday, a client advised that she could not access one form. On checking, I found that all 'Users' group permissions had been removed for that form and that form only. My backups indicate that the change occurred in the last 2 days, and occurred in my...
0
12902
Coldfire
by: Coldfire | last post by:
Since i cannot show the differences in a two-column like table. I am first putting MS SQL Server 2005 and then MySQL 5.x. MS SQL Server 2005 Brief Overview - SQL Server is a full-fledged database system developed specifically for large enterprise databases. All advanced features of a relational database are fully implemented. - Once you purchase the product, you are only limited to the Sybase-derived engine.
8
2396
by: Rico | last post by:
Hello, I have a form that seems to corrupt over and over again. I can't open it in design view, usually getting a message like "There isn't enough memory to perform this operation. Close unneeded programs and try the operation again.". I can get to the code but can't seem to do anything to get into design view. The thing I thought about at first was the number of controls on the form; there are about 320 controls, but that is still...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.