473,396 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Studio crashing when I try to select a data source

I have a project that I've been working on for a while, where several
forms use DataGridViews to represent database information. The forms
are .NET 2.0, in Studio 2005. For the past couple of days, whenever I
click the little arrow in the top-right corner to show the
DataGridView Tasks subwindow, then click to expand the dropdown for
"Choose Data Source...", Studio crashes. If I "Debug" the app, of
course I don't have any symbol tables, so I can't do much, but I do
see that it's because of an unhandled null pointer exception. I can
only assume this is being generated because Studio is trying to
enumerate all the available project data sources, and coming up with a
null pointer somewhere. Also, if I just select the item, then go to
"DataSource" under Properties, and try to expand that combo box, I get
an error "Object reference not set to an instance of an object" -- the
boilerplate null pointer exception. In that case, Studio does *not*
crash. Obviously, it's still a big impediment.

This happens on existing, older forms, which I designed months ago,
when the Data Source enumerator was obviously not broken. Using the
Data --Show Data Sources menu option works fine -- it lists all the
DataSets that I've defined.

I'm really at a loss how to proceed -- the project is managed by
SourceSafe, so I could roll back to previous versions, but it's been
under heavy development, and I don't know what versions of Form A
correspond to what version of Form B, nor which versions of Forms A
and B correspond to which version of the project file. It worked a
month or two ago, the last time I tried to add a DataGridView, and it
didn't work starting at least a week ago -- that's all the information
I have to go on. If I could fix the problem *without* rolling back,
I'd be happiest... maybe there's some kind of cache I can clear or
something? I'm really not familiar enough with the underpinnings of
devenv to fix it all alone.
Jun 27 '08 #1
1 2349
On Apr 24, 11:17 am, Coderer <code...@gmail.comwrote:
I have a project that I've been working on for a while, where several
forms use DataGridViews to represent database information. The forms
are .NET 2.0, in Studio 2005. For the past couple of days, whenever I
click the little arrow in the top-right corner to show the
DataGridView Tasks subwindow, then click to expand the dropdown for
"Choose Data Source...", Studio crashes. If I "Debug" the app, of
course I don't have any symbol tables, so I can't do much, but I do
see that it's because of an unhandled null pointer exception. I can
only assume this is being generated because Studio is trying to
enumerate all the available project data sources, and coming up with a
null pointer somewhere. Also, if I just select the item, then go to
"DataSource" under Properties, and try to expand that combo box, I get
an error "Object reference not set to an instance of an object" -- the
boilerplate null pointer exception. In that case, Studio does *not*
crash. Obviously, it's still a big impediment.

This happens on existing, older forms, which I designed months ago,
when the Data Source enumerator was obviously not broken. Using the
Data --Show Data Sources menu option works fine -- it lists all the
DataSets that I've defined.

I'm really at a loss how to proceed -- the project is managed by
SourceSafe, so I could roll back to previous versions, but it's been
under heavy development, and I don't know what versions of Form A
correspond to what version of Form B, nor which versions of Forms A
and B correspond to which version of the project file. It worked a
month or two ago, the last time I tried to add a DataGridView, and it
didn't work starting at least a week ago -- that's all the information
I have to go on. If I could fix the problem *without* rolling back,
I'd be happiest... maybe there's some kind of cache I can clear or
something? I'm really not familiar enough with the underpinnings of
devenv to fix it all alone.


Wow, it's amazing how often I fix a problem while I'm trying to
explain it to someone else. OK, when I said Data --Show Data
Sources worked, I neglected to mention that there was an odd icon for
one of them (it was my only data source based on a type, rather than a
DataSet). I realized that I probably had not updated that DataSource
definition since I changed the name of the namespace that the object
is defined in. Lo and behold, when I removed that Data Source, then
re-added it by pointing to the relocated object (updating the bindings
of the BindingSources that used that Data Source), the error went
away.

It's still a pretty serious bug that needs to be addressed, though.
Is there a "proper channel" through which I should report this? Or
maybe it's already well known?
Jun 27 '08 #2

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

Similar topics

0
by: jphelan | last post by:
I have a subform that works fine until you import it into a new database when it crashes if you try to open it in either disign or form view. The form, "Attendees_Subform" in my application was...
0
by: John Phelan Cummings | last post by:
I have a subform that works fine until you import it into a new database when it crashes if you try to open it in either disign or form view. The form, "Attendees_Subform" in my application was...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...
0
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,...

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.