Jump to content

Cleanmem memory manager


Willy2

Recommended Posts

Yeah I am kinda proud how fine tuned the mini monitor is coming along thanks to my users giving feedback ;)

 

I just put out another update 15 min ago. Besides a minor menu change I was able to fix the system tray icon.

 

On my Windows 7 I don't have the UAC enabled. So I never knew of this bug with my system tray icons. Normally when explorer.exe is restarted my tray icon code will recreate the icon. It looks for the TaskBarCreated flag from explorer.exe

 

Well when the UAC is on, processes not running as admin (explorer.exe) can not send messages to processes running as admin (mini_monitor.exe)

So when explorer would create the task bar my program never gets the message and so the icon disappears.

 

Well I did some digging and found a new API that allows my app to say that the message is allowed to come to it. Now the tray icon shows up after explorer.exe restarts with the UAC on ;)

 

So I just updated my other 3 programs that use the same code and putting out updates today. :-)

 

So far looks like Monday is still on track to be the release date for CleanMem 2.0

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

CleanMem 2.0 is released :-)

 

http://www.pcwintech.com/cleanmem

 

If you have the release candidate just simply install the final release over your current. No need to uninstall :-)

 

I truly hope you like it.

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

Shane, I was using version 1.7 and it had that button on the MiniMonitor which would run CleanMem when you press it. The new version doesn't have it. Is it some setting I need to configure?

 

Thanks.

Simplicity is hard.

Link to comment
Share on other sites

I removed the button so people could set the position of the text. Plus the button was ugly lol

 

There are 2 other ways to manually run cleanmem. You can just right click on the monitor now. Or you can even set the gloab hot key so it will run when you hit the keys you set ;)

 

 

And of course the day I release cleanmem my host's entire LA complex goes down. They host over a million sites, all of them down. They better work fast or they are going to have a lot of ticked off people lol.

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

haha, agreed the button did look a bit off.

 

I used Task Scheduler to make it run every half an hour, is it possible to have a built-in option for that? I love this little program, really makes the PC lag free. :)

Simplicity is hard.

Link to comment
Share on other sites

The task scheduler now is set to 15 min by default. The pro mini monitor though now gives you more options as well ;)

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

Ah, I see it. It was 30 for me, had to change it to 15 minutes manually.

I am so glad I discovered this neat program; thanks Shane.

 

EDIT: You 'could' add an option for mild transparency to the MiniMonitor for a bit of the Aero feel.

Simplicity is hard.

Link to comment
Share on other sites

  • Moderators

And bought

 

ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION

DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.

Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)

ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.

Support at https://support.ccleaner.com/s/?language=en_US

Pro users file a PRIORITY SUPPORT via email support@ccleaner.com

Link to comment
Share on other sites

Ah, I see it. It was 30 for me, had to change it to 15 minutes manually.

I am so glad I discovered this neat program; thanks Shane.

 

EDIT: You 'could' add an option for mild transparency to the MiniMonitor for a bit of the Aero feel.

 

You can set the level of transparency for the mini monitor :-)

 

 

And thanks Nergal :-)

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

There are 2 other ways to manually run cleanmem. You can just right click on the monitor now. Or you can even set the gloab hot key so it will run when you hit the keys you set ;)

Sure wish there were a one-click manual clean like there was in 1.70 (without a hotkey). I used that button a lot.

Link to comment
Share on other sites

Perhaps I could put the button back, but have it hidden by default?

Then a user can decide to show it or not? It was a simple button that just called cleanmem. Wouldn't be hard to put back :-)

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

Or instead of the button you could double click on the monitor? I don't know, to many choices lol

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

Or instead of the button you could double click on the monitor? I don't know, to many choices lol

 

Shane

Actully, that would work fine for me. I would prefer that over the current right-click option.

 

By the way, could you provide a real simple 1-2-3 list of just the "pro" features.

Link to comment
Share on other sites

Here you go

http://www.pcwintech.com/cleanmem-help

 

I will go ahead and add the double click to the monitor. I don't want to put out a new version since I just released it last night. But I will update my setups with it here ina bit. I will get started on it now, should be easy to do :-)

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

All done :-)

 

Download and install the new setup, still the same version. No need to uninstall the old one. I even updated the screen shot to show the balloon tip letting users know to double click on the monitor to run cleanmem.

 

Hope this covers it for ya :-)

http://www.pcwintech.com/cleanmem

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

Its what I'm here for :-)

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

All done :-)

 

Download and install the new setup, still the same version. No need to uninstall the old one. I even updated the screen shot to show the balloon tip letting users know to double click on the monitor to run cleanmem.

Works great, Shane. Much better - at least for me.

Link to comment
Share on other sites

I just came across a memory leak or whatever you want to call it. While I was installing the newly compiled setup, it asked me to exit CleanMem/MiniMonitor. Okay.

 

I right clicked on the green icon in the Notification Area and the CPU usage shot up to 50%. I had to use Task Manager to terminate the process. Any idea?

 

And it is much better for me now as well.

Simplicity is hard.

Link to comment
Share on other sites

When you open task manger was it the mini monitor using the CPU?

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

I should ask, when you right click on the tray icon does the cpu spike, or is it when you clicked on exit?

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

Here is a test for v2.0.1 (If it works it will be the release)

http://www.sendspace.com/file/8xst7k

(Replace the mini monitor exe with this one)

 

I changed 3 things.

 

1. I changed the API used to pull up the Menu (I did this in case the api I had was causing the cpu spike when you open the menu.

2. Added a minimized button to all the windows.

3. Changed the shutdown process of the program. I did this in case it was causing the cpu spike. Also on one persons machine, and for some reason only his, when he would exit the mini monitor it would crash. I have him testing this one as well. Hopefully the better shut down process should shut down everything better and avoid a cpu spike or crash. I couldn't get either to happen on my system. So all I could do was look at the code that was called when this things happened.

 

Fingers crossed :-)

 

Shane

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

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.

Simplicity is hard.

Link to comment
Share on other sites

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

(About Shane)
Girlfriend & 5 kids, Needs a lot more coffee.
When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: SirSoft.io & Former Owner and Programmer of Tweaking.com

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.