Solved

Visual Studio crashing when I click on custom control

Posted on 2009-05-05
5
179 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

808 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