I couldn't replicate the problem again. It could possibly be some other program conflicting with CleanMem. It happened when I right clicked on the tray icon. It became unresponsive and I had to terminate Mini_Monitor.exe via Task Manager.
My PC specs: 2.4 Ghz Core2Duo and 4.0GB RAM with Windows 7 64-bit in case you are curious.
So far, so good. Nothing's going wrong.
Thanks.
OK, only 1 thing of code is called when you right click on the tray icon.
In VB when you show a menu and try to click away from the menu, the menu will stay till you click something on it.
To get around that I have it calling a single api before it shows the menu
SetForegroundWindow
http://msdn.microsoft.com/en-us/library/ms633539%28v=vs.85%29.aspx
What this would do is set the window to focus, so when you clicked away from the menu the menu would unload like any other.
Well since this is the only bit of code being ran when it locked up on you I decided to find another way.
the SetForegroundWindow works by the thread of the window. perhaps this has a problem on some systems?
So instead I found an old api that will set the focus by the window and not the thread
SwitchToThisWindow
http://msdn.microsoft.com/en-us/library/ms633553%28v=vs.85%29.aspx
This seems safer as it is only setting a window and not having to go for the thread like the other api.
I think I will leave it this way.
If you haven't update to 2.0.1 on the link I gave please do so. I haven't released it yet.
When you load it right click on the icon and hit exit. Then check the task manager, did it close?
The other bug my friend had was something is off on his system, I don't know what.
In my current 2.0.0 exe I have the command "End" after it is done unloading. What this says is to forcibly kill the exe now.
On mine and many others everything ends, no problems.
Yet on his he gets a crash. SO I changed the code and no longer call "End" instead I do the unload me call. Which will only close the process if everything is done and unloaded.
So hopefully I improved the shutdown of the program well enough to where everything unloads.
For me the new shut down works, just need it tested :-)
Long winded enough for ya lol
Shane