Programs closing on their own - Wing, P4350 General

I am using aserg windows mobile 6.1 rom and I have noticed a creeping problem. As time goes on, I can only seem to run 1 substantial program at a time.
For instance, if I try to run any of these programs in tandem:
HTC audio manager or Windows Media Player
Mundu mobile messenger
Opera
Internet explorer
Dictionary software
Outlook mail (sms/email)
Skype
the program in the background always closes. This is especially annoying when for instance I am listening to music and I get an email or sms, I go to check it and my music player just closes. Same if I try to browse the web and listen to music or check an sms, It is very annoying.
What causes this function in windows mobile and how do I turn it off?
As for memory, when I start I have 13-14 megs free memory. Any of these programs take an absolute MAXIMUM of 4-5 megs at peak usage. I should be able to run at least 2 together without a problem, and if another one does nto have enough memory, it shoudl just say so and not start, but not close out other programs...
I also have about 4-5 megs of free storage space on the phone.
any ideas on this one?

It seems as time goes on, I can't seem to run any more than 1 program simultaneously...

Reduce the amount of file space your browser have allotted for cache files and history.

My browser cache for both Opera and PIE are both pointed at the storage card which has about 500megs free. This problem occurs even if I am running any programs though, not just browsers...

It's either the memory shortage (which some of those programs can actually take much more than 4 or 5 mb to run.) Or you have it set to close on tap, within the task manager/x-button, instead of close on hold.

I use batterystatus, and it is set to tap and hold X to close, but I never use the X, I simply go to the start menu and open another program, then when I try to switch back to the other program, it is closed already.
How do I check if it is a memory problem?
For instance, if I run HTC audio manager, then get a message, I click reply, then after about 3 seconds into my reply HTC audio manager closes.
is there any way I can "force" the programs to stay open? Even if I were to launch a new program and it does not have enough memory, it woudl just not open rather than closing an existing open program...

To me, it sounds like you are running out of RAM, and programs that were running in the background are automatically closed. I'm not affiliated with Windows Mobile and hence not an expert, but I believe this (closing previously open programs rather than the new one) is the expected behavior in WM. Imagine getting a phone call and the phone app not opening since there's not enough memory because the OS didn't automatically close background programs...
I don't know of a way of changing the memory management behavior, but maybe someone else here does? I'd argue that you wouldn't want to anyway.
I'd suggest that you DO use the X button to close programs, otherwise I guarantee you will run out of memory and things will close automatically anyway. The difference is you won't have any say in what gets closed at that point. I added programs that I don't want to close with the X button (like Live Messenger) to the exclusive programs list in the Task Manager.
Second, I'd suggest you take any steps you can to increase your original pool of memory.

Darren, I understand your point, but it seems as if I have plenty of memory, and I can only run 1 program at a time. I don't mind so much the behaviour, it is just at the point of being ridiculous when I can only run 1 program at a time.
So you think that starting with 13-14 megs of free memory is not enough? How would I go about increasing this original pool of memory?
Also, even it I use the X button to close programs, that does not solve my problem anyways, whichever program is not in the foreground seems to close by itself anyway...

phony, I understand your frustration. I have had low memory problems myself, and I know that programs running in the background will close when that happens. That's why when I read your post it sounded like a memory issue to me.
I ended up tweaking a few things to try to get more free memory, like not running certain processes or services automatically at startup. I'm not sure if it is relevant to the ROM you are running, but see http://forum.xda-developers.com/showthread.php?t=312312.

This is definitely a memory problem. When the free program memory is lower than about 1MB (don't remember the exact number), the WIndows Mobile will send a WM_HIBERNATE to all the running program to release all the possible resources. If the memory goes lower, it will broadcast another message called WM_CLOSE to close all the background apps to release more memory. The only reason for apps that close on themselve is either low on mem or there are some apps in the background (maybe a virus) sending WM_CLOSE every now and then. To be honest, to have less than 15 megs of ram to start with is NEVER enough. Try to change the pool size if you don't like any of the great roms here. Hope this help.

Related

WM5 automatically close some programs to clear memory?

Is there anyway to prevent this? I am using a program that will close automatically after using a couple programs...
http://benhirashima.com/software/
Due to the way Windows Mobile manages memory, you may find that if you have been using a lot of different programs on your phone, or doing something that requires a lot of memory, that Windows Mobile will automatically shut down TxtMan without warning. It does this to free up memory for whatever you're currently doing. Unfortunately, TxtMan won't receive SMS messages after it's been shut down. If you've been doing a lot of work on your phone, you should check to see if TxtMan is still running.
Click to expand...
Click to collapse
does anyone have any info on this and maybe a registry setting to prevent it?
WM just frees memory. You can do nothing with this, except soldering extra RAM chips
there is also 32 program limit. if you have too many programs open, the last used will be closed anyway, having more memory will not help. trust me on that one, I have 128 Mb RAM and WM5.
The programs can ignore WM_CLOSE, which enlongates livetime. But if memory becomes too cluttered, Windows will kill the program anyway.
The idea was to do something like Palm, where a program exits to a saved state when it's left (there is no multitasking) and continues there when restarted. The "smart minimize" feature (programs aren't closed but minimized until memory runs low) would have been a speedup, and allowed programs to do some background stuff while there's enough memory and CPU time. With small organizer apps like Contacts, Appointments, PocketWord, etc., this would have worked quite OK...
However, since PPCs became more and more "small PCs" instead of "better organizers", programs grew in CPU and memory usage, required to stay alive (e.g. multimedia players, navigation, ...), and task managers like WisBar became a "must have". And the automatic close mechanism became an unwanted legacy...

Make WM5 to automatically close applications, just like a Palm device

I always have problems with WM5 memory management, which led me to experiment more on some free apps out there. This is a personal trick I just recently learned from all the AKU 3 versions that are coming out that I have been trying out and would like to share with everyone.
I will attach OXIOS Memory CAB file below my post, you need both Oxios Hibernate and Oxios Close Apps for this trick to work.
This is the theory for the increase of memory: basically what I wanted to happen is to only have 1 application running in the background no matter what. Thus, opening another app automatically closes the other app, even just pressing the OK button. Just like what a Palm device does with regards to application handling.
One draw back though, you are eliminating the ability of the WM5 device to run multiple applications at the same time.
OK enough of the explanations, here is what you have to do:
1st: Download the copy of OXIOS apps I provided.
2nd: Run the CAB file to install.
3rd: Go to Windows>Start Menu>Programs>Accessories.
4th: Copy the shortcuts for both Oxios Close Apps and Oxios Hibernate.
5th: Go to Windows>Start Up.
6th: Paste both Oxios Close Apps and Oxios Hibernate.
7th: Perform a soft reset.
Basically this would make WM5 behave like a palm device. You can now only open one application at one time, thus ensuring you have enough memory for your current application to run.
You don't even need to close any app anymore manually, since it is done automatically for you now.
There are some exceptions to this however and they are:
1: Contacts Application
2: MMS Application
3: Calendar Application
4: Phone Application
These 4 apps can be opened all at the same time without closing automatically, a good thing because you want them to work together when sending messages or files. Plus, you also want the phone ON at all times.
Good luck and let me know if you prefer this solution or suggestion.
hmmm...
I don't like the idea of not being in control of my device...
I've been happy doing it manually with Magic Button, and since yesterday, Wisbar Advance 2.
I think the extra tap is worth it!
that's great, maybe it's good for me, thanks for your cab file.
i tried these apps before, but not in this fashion. it never really fully recovered all the memory that it was trying to recover.
is there still a gradual memory leak, or does this manage to retain the full amount of memory after each closure.
i start with 29 - 30mb, it drops to about 18mb, so I reset it. does this stop the memory drop and reduction and totally reclaim the memory on closure of every app?
simon_darley said:
does this stop the memory drop and reduction and totally reclaim the memory on closure of every app?
Click to expand...
Click to collapse
No, unfortunately, but based on using them on the latest AKU 3 ROMs, Oxios apps are getting better in recovering the lost memory.
thanks! will think about installing this. currently, im just using memmaid's reclaim ram plug in. Im not sure if it's just placebo but it works somehow..

Yahoo GO - Memory Leak?

I've been using Yahoo Go for Email/Contacts/Task/Calender/Photo retrieval and syncing between my Yahoo account and my TyTn. It's great mainly because it supports email folder access/syncing with my Yahoo Email account using the native WM5 mail client.
The issue i'm having is that it seems like the yconnections.exe program that is the guts of the thing seems like it has a memory leak or something. If I softboot my phone, yconnections.exe uses approx 430k of memory and the heap size is 150k, assuming the values are in KB, as per SKTools.
Note: Other (native WM5) programs also seem to use more and more memory as time goes on (gwes.exe, filesys.exe, etc) and i'm not sure if this is normal also?
Over a day or so the memory and heap size can increase dramatically (many MB's), to the point where there is so little free memory that a WM5 dialog box will pop up warning me of low memory and asking me to close applications to free up memory. At this point, I usually need to softboot.
Anyone have a similar experience or can explain whats happening? Also, can anyone explain the difference between "size" and "heap" as it relates to SKTools process information?
Thanks,
C
I can confirm the memory leak... I was attributing the leak to Active Sync till I installed a free task manager.
The Yahoo go application runs in the background and fetches emails on a user defined frequency.
I noticed that the application keeps increasing in size/footprint while active and the free memory on my phone goes from ~19 MB post install to less than ~4 MB within a couple (usually within 6 to 7 hours) of hours of use.
wow, you're totally right... this thing is leaking memory... is this yahoo's fault or the phones fault.
anyone else have ethis problem?
christian15213 said:
wow, you're totally right... this thing is leaking memory... is this yahoo's fault or the phones fault.
Click to expand...
Click to collapse
I don't use that yahoo go, but i have the same problem, even properly shutting down active programs doesn't sort it, when my memory gets low, i delete the 'previously viewed' web content in IE and soft reset, that brings the memory back up. Its a pain in the arse!
I downloaded the task manager (look for it on this forum) and use that to kill Yahoo Go!... so far I haven't needed to soft-reset since yesterday afternoon (usually had to do that every night to keep the phone stable and usable). Additionally, I currently have ~21 MB of free RAM to run my programs in.
I used the IE hack to move all the cache, history and cookie storage to my SD card, that helps a lot when browsing the web.
I also have SPB Pocket Plus installed that kills the programs on close (similar to the HTC close/X program); rather that the windows default behavior to minimize them.
Any one have a fix for the Yahoo Go! memory leak??
This is been a problem for it since it was released for Windows Mobile. I had it on my 8125 and it was terrible. I had to soft reset to actually get it to stop using memory. I haven't used it since.

RAM/Memory Low Problems

For some reason, I don't see too many complaints about low memory issues - yet I have always had problems with my RAM.
I have almost all of my programs installed on my SD card to try reduce any of my memory usage - but if I run PIE, MSN Messenger, or try to play music, I almost always have low memory messages come up.
I usually have one program running in the background - Slide to Unlock - but as far as I know its not that memory intensive?
Any insight on how I can fix this?
Thanks!
Are you running an elf or an elfin? If your not sure.....go to start-->settings-->system-->device information-->hardware. What does your RAM size read? If its 64MB its an elf.....if it says 128MB its an elfin. Your saying you've installed all your applications on the storage card. How much free space do you have for program memory on your phone? Your phones needs free memory in order to run applications too. Perhaps its running low on that end? Two things you should do:
1. Move any extra files, photos, videos or anything else that you might have saved on the phone memory to the storage card. Use activesync. Its faster that way.
2. Clear out your browser history and temp files. This could most probably be your culprit as they take up space too...and you don't necessarily see this upfront. Goto Start-->Internet Explorer-->Menu-->Tools-->Options-->Memory Tab.
[email protected] said:
...
2. Clear out your browser history and temp files. This could most probably be your culprit as they take up space too...and you don't necessarily see this upfront. Goto Start-->Internet Explorer-->Menu-->Tools-->Options-->Memory Tab.
Click to expand...
Click to collapse
I've been having "Insufficient memory" errors while trying to run SpB Backup, and have deleted all sorts of applications, but nothing seemed to free up enough memory. Then I tried your advice, and everything is working as it should!
Thanks!!
I have an elf - usually when I close all of my processes, except my stumble to unlock, I'll have approx. 15mb/47 free in my program memory. 10/28 of my storage space is free.
I've tried to clear all of my temp files... even made it so that all my temp files/PIE files are put on my storage card through SK tools, but still have the same issues.
As soon as I run my HTC music player with the one or two background apps, it almost always pops up with memory issues. Browsing with PIE is almost impossible for any period longer than 5 minutes.
I've tried it with several configurations and I always have the same results, even if I have no background processes - I still have the same issues.
Are you using a cooked ROM? Come to think of it, I never had many problems with the original shipped ROM. I was normally running S2U2, PocketMusic, Opera Mini and SpbMobileShell back then.
You mean to say you can't even run one application at a time without running out of RAM? Soft reset. And if you use SKTools like you say you do, try running Free Up RAM, select all options.
In your shoes I'd probably move everything I want to storage card, (you should want more than 10mb storage) try a hard reset and install my most used apps again. Oh, and what is your PagePool size? Try here to find out about that. It should be 4mb.
Your primary problem is indeed the fact that you are running out of space on your phone. 15mb for program memory especially on heavy usage is quite insufficient. Especially if your going to be multi tasking and running several applications at once. I would move ALL my installed programs and anything else I may be able to get my hands on, to the storage card. Try to squeeze out atleast 25-30mb out of your program memory. This should give your phone some more breathing space.
This might be to use of you to try it out.
http://www.oxios.com/memory/
hi
I had the same problem before but now my touch runs fine now & haven't got any issues till now. Use advanced task manager and pocket mechanic. These application will keep ur pocketpc in good shape.
Very good, Thanks.

Memory Leaking Solution?

Well, I seem to have a constant memory leaking problem. I've tried different roms over the past few years. Some of the most recent DCD 3.2.4, 3.2.6, 4.1.2, and now RM v2.2 light. They all seem to have the same problem. The memory is fine when I do a soft reset, then I start using the phone for whatever, Internet, Text Messaging, etc. The memory starts to get less and less and less over a very short period of time until I hardly have any left. So, I have to keep soft resetting the phone like every hour or more. Is there a solution to this? I have to assume it's a hardware issue since all the ROMs seem to cause the same problem. I have a friend that has the same phone and he uses his phone with MR1 and he says he has no problems at all, but he uses his phone as a basic phone and doesn't use it like a computer, like I do. He doesn't text message or use many applications at all. So, I don't know if he would have the same problem if he ran all the apps I do and text messaged, etc. Thank you for your help and time...
It's not a hardware issue. Due to the nature of our OS, there will more than likely always be a slow memory leak...but it shouldn't be bad.
Do you have a task manager like HTC Task Manager that allows you to completely close apps when you press (or hold) the X? You may have lots of apps running throughout the day that don't actually exit.
You can also try running a program like Oxios Hibernate occasionally to free up some memory.
You may also have programs such a Voice Command that run in the background and use memory; try looking and seeing what is running in the background.
Try downloading something like DotFred's Task Manager, and look at the what programs are running and how much memory they utilize shortly after a reset. Then look again a few hours later to see what changes.
Yes, I do and I'm exiting the apps. It doesn't seem to be bad with this new RS ROM. All the DCD ROMs that I used had a major problem when I used them. I was using memRelease, that seemed to be the best out of the ones I tried, but it would still not release a lot and it would slowly go down lower and lower. I've just started using Oxios Hibernate 1.40 since it came with the new ROM. I don't have voice command that I know of. I see what's running in the background, there is some utility came with the ROM, but I'm not sure what the files are that are running and if it's OK to stop them. I will have to try what you say, but I'll have to try to find that utility again, or get that one you suggested. Thanks!
btonetbone said:
It's not a hardware issue. Due to the nature of our OS, there will more than likely always be a slow memory leak...but it shouldn't be bad.
Do you have a task manager like HTC Task Manager that allows you to completely close apps when you press (or hold) the X? You may have lots of apps running throughout the day that don't actually exit.
You can also try running a program like Oxios Hibernate occasionally to free up some memory.
You may also have programs such a Voice Command that run in the background and use memory; try looking and seeing what is running in the background.
Try downloading something like DotFred's Task Manager, and look at the what programs are running and how much memory they utilize shortly after a reset. Then look again a few hours later to see what changes.
Click to expand...
Click to collapse
OK, I can't find the application I was talking about, I'm thinking it was in the Heavy version of the ROM and not the Light and that's why I can't find it now.
I did what you suggested and I installed DotFred's Task Manager. I can see the processes that are starting when I do a soft reset. Can you tell me if there is a place that lists what all the processes are and what I need and don't need? This way I can figure out what processes and don't need and stop them. Is there a way to stop some processes from starting automatically when you turn on the phone, and that will only start when I start them manually?
When I do the soft reset my free memory is about 17.76 MB but my processes are only using 15851 KB but my free memory is 18.52 MB after I use Oxios. So, that doesn't work well to free up memory. After you minus the memory the proceses are using from the total memory it should have 37.44 MB free. So, I don't know what's using up the rest of the memory.
I'm also using Kernal to use the High Memory Kernal so the camera doesn't work and it frees up alot more memory. So, if I used Low Memory Kernal my memory would really suck. So, there must be something wrong here.
Is there a way to keep ActiveSync from starting all the time? Here is the list. Thank you!
shell32.exe - 4440 kb
gwes.exe - 3350 kb
device.exe - 2677 kb
services.exe - 2383 kb
filesys.exe - 1812 kb
cprog.exe - 892 kb
connmgr.exe - 104 kb
repllog.exe - 101 kb
TaskMgr.exe - 80 kb
psShutXP.exe - 5 kb
FTouchFlo.exe - 5 kb
poutlook.exe - 1 kb
NK.exe - 1 kb
btonetbone said:
It's not a hardware issue. Due to the nature of our OS, there will more than likely always be a slow memory leak...but it shouldn't be bad.
Do you have a task manager like HTC Task Manager that allows you to completely close apps when you press (or hold) the X? You may have lots of apps running throughout the day that don't actually exit.
You can also try running a program like Oxios Hibernate occasionally to free up some memory.
You may also have programs such a Voice Command that run in the background and use memory; try looking and seeing what is running in the background.
Try downloading something like DotFred's Task Manager, and look at the what programs are running and how much memory they utilize shortly after a reset. Then look again a few hours later to see what changes.
Click to expand...
Click to collapse
It must be something you're installing because I've used most of the ROMs you mentioned along with having tons of extra stuff installed and running in the background and with heavy use the memory leaks really only became a problem after a day or two... not every hour.
Well, the RM ROMs seem to be working better then the DCD ROMs. I have to keep clearning the memory, but I don't have to keep restarting my phone like I did with the DCD ROMs. I still don't understand what's up with the memory. I had like 50% clear memory after the fresh install of the new ROM, and I checked the processes. I then restore my backup and install my software and then the memory goes down to like 30% free. I check the processes and there is no new processes. So, if there is no new processes taking up the memory then what is, and how can I find out? Yes, there must be something wrong, but I don't know how to figure out what it is. Thanks!
unL33T said:
It must be something you're installing because I've used most of the ROMs you mentioned along with having tons of extra stuff installed and running in the background and with heavy use the memory leaks really only became a problem after a day or two... not every hour.
Click to expand...
Click to collapse

Categories

Resources