I have a bug which seems to corrupt the operating system.
The application
==========
I have a VB.NET MDI application which has complex menus, including:
* A main menu with run-time items that can change during the application's lifetime
* Various different MDI child forms, that also have run-time built menus
* a MDIChild list under a "Windows" main menu item.
* a toolbar.
However, I have NO objects that inherit from the menuitem, or anything "non-standard" like this.
The problem
=========
I open the application, open a couple of MDI child forms, and then move the mouse back and forward across the menus at the top for a few minutes (this is simply a quick way to reproduce the problem - no, I am not mad!). After a short (but unpredictable) time of time, the menus disappear!
At this point, it becomes impossible to launch ANY other application in Windows (including Word, and the clock in the Icon Tray). I just get a system "Beep". I also can't access the menus and toolbars of some other applications that may be open at the same time (eg. Internet explorer!). Once I close my application everything is OK again.
If I attempt to continue using my application (via non-menu operations) things get worse - to the point where Task manager can't be opened, my application won't close, and the only solution is to turn off the computer.
Solution?
======
I have included a v. small VB.NET application (source) that emulates the menu part of my application, and exhibits the same bizzare but unpredictable characteristics.
My questions are:
* Has anybody come across the same problem? Your advice would be much appreciated.
* Can anybody see any problems with the code?
I suspect there is a bug in the Framework for this to occur, but I am hoping that it is something I have done.
Thanks for taking time to help me.
Glen.
The application
==========
I have a VB.NET MDI application which has complex menus, including:
* A main menu with run-time items that can change during the application's lifetime
* Various different MDI child forms, that also have run-time built menus
* a MDIChild list under a "Windows" main menu item.
* a toolbar.
However, I have NO objects that inherit from the menuitem, or anything "non-standard" like this.
The problem
=========
I open the application, open a couple of MDI child forms, and then move the mouse back and forward across the menus at the top for a few minutes (this is simply a quick way to reproduce the problem - no, I am not mad!). After a short (but unpredictable) time of time, the menus disappear!
At this point, it becomes impossible to launch ANY other application in Windows (including Word, and the clock in the Icon Tray). I just get a system "Beep". I also can't access the menus and toolbars of some other applications that may be open at the same time (eg. Internet explorer!). Once I close my application everything is OK again.
If I attempt to continue using my application (via non-menu operations) things get worse - to the point where Task manager can't be opened, my application won't close, and the only solution is to turn off the computer.
Solution?
======
I have included a v. small VB.NET application (source) that emulates the menu part of my application, and exhibits the same bizzare but unpredictable characteristics.
My questions are:
* Has anybody come across the same problem? Your advice would be much appreciated.
* Can anybody see any problems with the code?
I suspect there is a bug in the Framework for this to occur, but I am hoping that it is something I have done.
Thanks for taking time to help me.
Glen.