473,320 Members | 1,572 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,320 software developers and data experts.

Move menu items causing user to go bananas

Every time I want to move a menu item (from one menu dropdown to to same
menu adjacent dropdown) by Cut in Microsoft Visual Studio 2005 it
immediately crashes on cut with error dialog 'an error occurred while
processing this command Object reference not set to an instance of an
object'
I remove the click event and the error still occurs. Have checked other
item references, and they are non manual entries.
Any advice? Thanks, Alistair.
Sep 17 '07 #1
4 1678
Alistair George wrote:
Every time I want to move a menu item (from one menu dropdown to to same
menu adjacent dropdown) by Cut in Microsoft Visual Studio 2005 it
immediately crashes on cut with error dialog 'an error occurred while
processing this command Object reference not set to an instance of an
object'
I remove the click event and the error still occurs. Have checked other
item references, and they are non manual entries.
Any advice? Thanks, Alistair.
Since nobody has replied to this post, then it must be an error that is
unavoidable. It is going to be interesting trying to fix it, as Visual
C# crashes every time I want to sort it. Why could not MS have designed
the menus such that you can drag any item to any position in the same
menu instead of this ridiculous cut and paste which inherently causes
problems.
Sep 17 '07 #2
Alistair George wrote:
Since nobody has replied to this post, then it must be an error that is
unavoidable.
Or maybe it's just not a problem that most people run into. You should
be careful to draw conclusions from the _absence_ of information. That
hardly ever works.

For what it's worth, I do not have any trouble cutting or copying a menu
item from one menu and pasting it into another. This is true whether I
use a MenuStrip or the older MainMenu component. In fact, using the
MainMenu component I can actually drag-and-drop the menu item, rather
than being forced to cut/paste.

Furthermore, from your description it doesn't sound to me at all as
though Visual Studio is _crashing_. You got an error message, and IMHO
it is more likely related to some of your own code that is being
executed for some reason as a result of moving the menu item.

Whatever's going on here, it's not because Visual Studio has trouble
copying and pasting.

Now, if you want to provide a concise-but-complete example of code that
reliably reproduces the problem, there may be someone who is willing to
take the time to compile the code and try to help you. But so far you
really haven't given anyone anything concrete to go on, making it very
difficult to provide any sort of reasonable answer. The lack of an
answer has a lot more to do with the vagueness of the question than it
does with any inherent problem with Visual Studio.

Pete
Sep 17 '07 #3
Thank you Peter.
I am new to Visual C# but have over 20 years programming experience so
fully understand your points. I cannot place an example of the code
simply because its a huge project which I am only helping in do some
parts thereof, but I would have presumed that the removal of the onclick
event would have given the IDE no problems thereafter in moving the
item. I'll ask someone else on the project and see if they have the same
problem.
Kind regards,
Alistair.
Sep 17 '07 #4
Alistair George wrote:
OK to put it another way, would there be a means to stop V C# from
closing because of this error. Basically, it doesnt give me any chance
to fix the code or remove any offending lines - it just shuts down.
I don't know. For what it's worth, it wasn't clear to me from your
original post that VS was exiting after the error. I would agree that
it's always a bug for an application to simply exit unexpectedly, even
if it does display some error first.

So, you probably do have an error in your code somewhere, but I think
you're right that VS is behaving badly too.

Pete
Sep 18 '07 #5

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

Similar topics

6
by: Sandy | last post by:
Hello - I have a book that illustrates pulling menu items from a Sql Server table into an ascx via a stored procedure. Is this something that is done in the real world? I do like the effect...
4
by: snowweb | last post by:
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a database query. I previously had the menu working but...
4
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from...
6
by: Ben Fidge | last post by:
Hi I've just created a new Master Page for my site and it uses the native Menu control. Strange behaviour is happening on page that use the master page. For some reason, the menu controls...
0
by: John Smith | last post by:
If anyone can help, I would very muchly appreciate it. I have a main page that uses the .net 2.0 menu control with the multiview controls as the menu choices. This works fine. One of the menu...
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hi, friends, I am using C#.net 2005 to create a windows application. It has menu items, such as File, etc. Under File, there are more menu items, such as New Files, Working Files, etc. Under...
1
by: Kayvine | last post by:
Hi guys, this is a question I have for an assignment, it is pretty long, but I am not asking for the code(well if someone wants to write I'll be really happy, lol), but I just want to know how to...
13
by: PetterL | last post by:
I writing a program where I read menu items from a file. But I have problem when I click an menu item i want it to mark that one as checked but I cant access the menu object of that item to see...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.