Solved

Visual Studio crashing when I click on custom control

Posted on 2009-05-05
5
174 Views
Last Modified: 2013-12-17
Hello,

I have a custom control.  When I try and build my project, or click on the custom control (placed in another form) visual studio crashes saying:

Microsoft Visual Studio has encountered a problem and needs to close.

It was working at some point, so obviously I have done something to piss visual studio off... how can I figure out what I did, and what I need to do to fix it?
0
Comment
Question by:BobBarker_99
  • 3
  • 2
5 Comments
 

Author Comment

by:BobBarker_99
ID: 24311172
Well I seem to have figured it out by a process of eliminating... just commenting parts out, and uncommenting them.  Everything is  uncommented now, and it still works.  I only made 1 change, checking for a null value in a property.  

Does vs call that property or something?  Because in my code I never call it before it is initialized... is that somethin that vs does? in design mode?
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 24311186
Well, it depends on the location of the code...

If you put a code inside the form load or the sub new. And an error was encountered visual studio cannot load that control, or let you drag it in your form.
0
 

Author Comment

by:BobBarker_99
ID: 24311233
Its not in form load or new..

Its just in a "set" property.  So either it was the change i made there that made the difference, or just some glitch in vs, that commenting out, and uncommenting the code fixed..?  

Sometimes vs drives me crazy!
0
 
LVL 15

Expert Comment

by:JackOfPH
ID: 24311275
Can you  post the code?
0
 
LVL 15

Accepted Solution

by:
JackOfPH earned 500 total points
ID: 24311427
Check this out... you might be a victim of a bug in from microsoft...

http://support.microsoft.com/kb/957912
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to Popup 2 51
ASP.net VB.net hide footer cells of GridView 2 32
.Net Web Site Password specs 2 21
Exception in Log4Net 1 19
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now