Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Visual Studio crashing when I click on custom control

Posted on 2009-05-05
5
Medium Priority
?
185 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 2000 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

670 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