Solved

Visual Studio crashing when I click on custom control

Posted on 2009-05-05
5
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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