Hi there,
I have an app whose structure is as follows: a module calls a custom
application context containing a notify icon and associated context menu,
which in turn acts upon an instance of another class, I'll call Class1 (i.e.
accesses its startup, shutdown, print reports methods).
Basically, Class1 manages communication between two other classes: one is a
class that listens for a socket connection from another application and the
other is a windows form that is shown to the user when data is received
through the socket connection. There's more to it than that really, but
that's the high-level version.
Here's the problem:
After the application runs for a while, the notify icon in the system tray
stops responding reliably. Normally, when you right click the icon, you get
a context menu with three items. After several minutes or sometimes after
the workstation is locked and unlocked, when you right-click on the notify
icon, the context menu doesn't come up- instead I get a 'shadow' of the
outline of the context menu but I'm not able to interact with it.
I've used this architecture before in other applications and never run into
this problem. However this time I'm using .NET framework 2.0 and wondering
if there's something I'm missing.
Has anyone else seen this 'shadowed' or outline behavior in a
notifyicon/contextmenustrip setup? I can post code if that would be helpful.
Thanks so much!
Mike