What processes need to be running, what are they? - MDA II, XDA II, 2060 General

I'm running into the "too many processes" issue when using MultiIE to open multiple IE tabs. Apparently each one launches as a seperate process, and I run out of "space" for processes. Plus it seems like MIE doesn't close them properly every time, so after using it for a while, I can open fewer and fewer tabs.
I'm looking at the process list (using Advanced Explorer, a very nifty tool for only $3, http://www.pocketgear.com/software_detail.asp?id=8626 ). I recognize some things, not others. Here's my list. Anyone want to compare and add in answers to the processes which I can't identify?
Advanced Explorer (process viewer)
Battery Monitor (obvious)
Calligrapher (obvious)
CommLoader (?)
connmgr (Assume this is part of ActiveSync? Not sure)
cprog (?)
device (?)
filesys (sounds like the filesystem driver...?)
gwes (?)
IA_Caller_ID (obvious)
mmute (MeetingMute software)
MultiIE (obvious)
NK (?)
PegasSTA (?)
poutlook (obvious)
services (obvious)
shell32 (obvious)
srvtrust (?)

Related

gwes.exe just keeps growing

hi
I use MemMaid and the running process that uses the most memory is "gwes.exe".
the problem is ,that the amount of memory it uses just keeps growing,rising on a daily basis .I've found that a soft reset brings it right down again :lol: ,but then it starts to rise once more .
Does anyone have a similar problem?
Is there any way of bringing down its memory use without soft reset?
markbrudney said:
hi
I use MemMaid and the running process that uses the most memory is "gwes.exe".
the problem is ,that the amount of memory it uses just keeps growing,rising on a daily basis .I've found that a soft reset brings it right down again :lol: ,but then it starts to rise once more .
Does anyone have a similar problem?
Is there any way of bringing down its memory use without soft reset?
Click to expand...
Click to collapse
same to me. 10MB was the size of it. killing it makes the device freeze
don't kill gwes, it is a system process, stands for Graphics, Windowing and Events Subsystem.
i dunno why you get the memory leak, i don't. i always thought spb pocketplus is the culprit, but someone just claimed he had no leaks while using spb+. but give this a try if you happen to use it...
Same here and that is not just with gwes but with many other system files, but gwes is of course the biggest. Isn't this an issue with WM5?
I also use OxiosMemory and try to mitigate this by forcing the processes to release resources not in use, but that does not elimate this issue completely.
harryk1372 said:
Same here and that is not just with gwes but with many other system files, but gwes is of course the biggest. Isn't this an issue with WM5?
Click to expand...
Click to collapse
no, the explanation is not this simple. i run the same wm5 as you and i dont have this problem.
cmonex,
Can I ask you what apps you run? It might be the apps I am running that you do not run is causing the memory leak.
harryk1372 said:
cmonex,
Can I ask you what apps you run? It might be the apps I am running that you do not run is causing the memory leak.
Click to expand...
Click to collapse
i leave these constantly running all the time:
magicbuttons
taskmgr v1.6 (from buzzdev)
uptime
also usually leave these running:
totalcommander
opera
messages (sms)
occasionally using:
iGO 2006
Netfront 3.3
PQZII
vijay's full terminal screen hack
ftpsrv
phm regedit
tre regedit
adobe acrobat
mobipocket
wmirc
softmaker textmaker (wow sucks why no real vga)
tcpmp 0.71
hope this helped what apps are you running?
cmonex said:
hope this helped what apps are you running?
Click to expand...
Click to collapse
Thanks for that. What I run is quite a few and some are same as yours. The biggest difference is that I run Wisbar Advance 2 and Wisbar Advance Desktop to skin the GUI.
The apps I am constantly running:
Wisbar Advance 2
Wisbar Advance Desktop
SEVEN (mobile push email)
ATOK (IME for Japanese language)
DefSIPChange (changes default SIP)
PQz
The apps I am running occasionally:
Backup and Restore
GSFinder
MemMaid
Oxios CloseApps
Oxios Hibernate
PHM RegEdit
JpegCapture
TCPMP
VeriChat
Warm Reboot
GB-SOFT Tweak
Pocket Tweak
I will have to check the ones I am constantly running to see if any of them is causing this problem but it could be the first two on the above list.
hi
I run:
contacts
calendar
comm manger
internet explorer
resco file explorer
MemMaid
games
These I run most of the time and I frequently have to switch them off in settings/system/memory in order to keep a reasonable amount of memory free
However gwes.exe never decreases
Can anyone see a link?
markbrudney said:
hi
I run:
contacts
calendar
comm manger
internet explorer
resco file explorer
MemMaid
games
These I run most of the time and I frequently have to switch them off in settings/system/memory in order to keep a reasonable amount of memory free
However gwes.exe never decreases
Can anyone see a link?
Click to expand...
Click to collapse
hummm i didnt list the builtin apps but what i use from them is contacts, comm manager, PIE (very rarely), messages (only for sms), word... (sometimes the other office stuff too) would use calendar too but i always forget to note my todos in it
+ and i forgot to list nPOP (for emails) and a screenshot maker (magic something)..
anyway what you run doesn't sound too bad, if you really use no today plugins.. i got no idea.. what ROM version do you run?
The growth is because it caches icons (start menu - programs - settings) to speed up the display. At least that's my best guess!!!
hi
rom version:1.30.107 wwe
I did a soft reset today and gwes.exe went down to 4.22MB
I then ran only the wifi (comm manager) and gwes rose to 4.35MB
I ran it again after switching it off in settings/system/memory and it rose to 4.78MB
when I switched it off again in settings/system/memory it came down to 4.56MB but its obviously where the leak is.,because I didn't run anything else.
the problem is how do I stop it?
Hi all there,
same problem with my german VPA IV (Vodafone) even after several ROM upgrades (Jasjar, qtec, new vodafone ger) no changes of this strange behavior
I really hope, there's anybody out there, who can help us with this annoying thing.
This gwes.exe issue is experienced with WM2003SE as well. I found this in one of the threads in Windows Mobile Team Blog.
"With WM2003SE, I had issues like GWES.exe growing until I ran out of RAM. So, I purchased WM5, hoping the repurposed strata flash and new OS would resolve the issues."
You can also refer to below for gwes.exe in detail.
http://msdn.microsoft.com/library/d...ui5/html/wce50conshellanduserinterface146.asp
Someone was saying earlier in this thread that gwes.exe caches icons. That might be true but may not be just icons and that explains why gwes.exe grows. Or, it might be that some apps you are running are causing memory leak but that is not easy to spot on.
A workaround to this I use and can recommend to anyone having this problem is Oxios Memory 1.40. It's free!
http://www.oxios.com/memory/
One of its apps is Oxios Hibernate. WM_HIBERNATE is a window message that is generated by the Windows operating system and sent to an application when system resources are running low. All applications should get the message and handle it by attempting to release as many resources as possible by unloading processes, destroying windows, or freeing up as much local storage as possible without damaging the internal state of the system.
I normally run this whenever the free memory space gets low like down to 15MB before my device gets unstable. I normally gain quite a bit by reducing the sizes of gwes.exe and all other processes running are occupying and that I don't have to reboot my device everyday. Check the size of gwes.exe with MemMaid before and after you run this and you will notice how effective it is. :roll:
thanks harryk1372,
Oxios Memory 1.40 is great and I managed to release 3MB of memory.
However none of it came off gwes.exe.
Just a matter of interest ,how many times should I use Oxios Hibernate?
Every time I press it,I get some memory back.
markbrudney said:
thanks harryk1372,
Oxios Memory 1.40 is great and I managed to release 3MB of memory.
However none of it came off gwes.exe.
Just a matter of interest ,how many times should I use Oxios Hibernate?
Every time I press it,I get some memory back.
Click to expand...
Click to collapse
Maybe that gwes.exe did not have any resource to release at the point you ran Oxios Hibernate and it was already close to the bare bones. Try running Oxios CloseApps as well as Oxios Hibernate. CloseApps closes processes running in the background and that releases the memory used by those.
You do get some memory back by running Hibernate multiple times but the actual amount you get back is very small after the first run although the dialogue may say it is like 2 to 3MB released every time. I am not sure why this is but I think it is no use running it multiple times. Just run it once or twice a day when you find that the free memory is low.
As I wrote in the earlier post, Oxios Memory is just a workaround I found. It does not eliminate the problem completely and the memory resources used by the processes running will never go down to the level of right after the reboot of the device. I experienced that gwes.exe gradually grows in several days to the point when I need to reboot my device even with running Hibernate from time to time. It's just that I don't need to reboot it like everyday.
thanks harry
thank you very much
hey i had the same problem that is mentioned here....
i was running spb pocket plus when i noticed this....
now with ilauncher and spb diary i have around 25 mb at start up and hardly if any memory leak....
with ilauncher alone i have around 27.5 mb
also some software have been updated like pocket informant webis mail..my experience with them shows me that they have next to no memory leak...
what i have noticed is that applications which are not designed for wm5 have terrible leak....case in point....girders which i a game with simple graphics leaves me with only 9 mb when i exit the app...while with skyforce 1.22 (wm5) the leak is hardly 100-200kb
you could try htcAddicts:
http://forum.xda-developers.com/showthread.php?t=487490
it seems to be more powerful than Oxios

[REQ] WM uninstaller .. any developer ?

Hello everyone ..
I've been here for a while, and been using alot of apps from the great team of developers here. And been using a lot of great ROMs, thanks to all cooks!
I did something, and it showed me we do need a special program.
I tried to install an app, then uninstall it, and a very funny thing happened,
for example, it asked for 1536 kB to install , but it installed on more than that, and after uninstalling it freed less than what it already took, and even less than what it saied it will take.
I guess it's because of the registry and some un-removed files.
and here comes the idea of the program
AN INSTALLER/UNINSTALLER app
i think it should do the following
1- browse for the cab
2- i think it might need to use the builtin installer, but it should keep track of all the files and registery entries that the program will take
3- keep record of all the installed apps
4- allows the user to uninstall the app, again, it might need to use the builtin unistaller, but after it is removed, it ensures that all the registery values are removed and all the files are deleted
so what do you think? is this possible? any one can do it for us?
If this is a request of an Application, PLease Modify Your Title with some thing like this :
[REQ]Windows Mobile UnInstaller
Short answer: Forget it.
Middle answer : There are slightly improved uninstallers available, e.g. in SKTools
Long answer: The default installation routine keeps a pretty good track of what is installed with the default setup routines, and usually uninstalls it just fine (only exceptions: fonts and sometimes Today plugins. Which belongs to the things SKTools' uninstaller does better.).
The trouble is with those files and registry entries that aren't created by default installation itself. There are two ways for that to happen. Either there's a "setup.dll", which allows user extentions wherever the default routines wouldn't be flexible enough, usually used for setting migrations (updates) or selections immediately after installation (like which language packs should remain resp. extracted from an common archive). Or the application creates them on first run resp. whenever required (like when the user modifies settings, a game is saved, entries are created, ...). For both of them, any unistall helper has a really bad job to relate them to the program. The best it could do would be to remain in background, look for changes (which would take a lot of resources because WM doesn't offer as nice system hooks for e.g. new registry entries as the desktop Windows) and assign them to the currently active program. Which might be wrong whenever a program in background creates/modifies something. And then there's the problem "What to remove?" when it comes to uninstall. You wouldn't be that happy when it deletes all text documents, contacts, registry tweaks, ... you created with a program, would you? And sometimes you even want to keep the settings, e.g. when updating (since WM5, the old version is always removed before the new one is installed).
A developer can create special uninstall actions in the setup.dll, which usually are way better than any uninstall tool could try to be. You often experience that when there's a query like "Keep settings for update?" appears on uninstall. But that's up to the developers...
thank you guys very much for answering ..
as a result .. i get that if i want something better .. go buy a sktools license
and there is nothing better than that ...
right?
try Pocket Mechanic too
MemMaid is the best!
I vote for SKTools. Has the best uninstall function ever.

Startup apps-what is necessary?

I have a TMOUSA HD2, most recent stock ROM.
Looking at the Windows\Startup folder, I see the following items are in it, that I think were there originally (i.e., not added by an app I installed) (although I may be mistaken on some):
BTTrayCE
HTCStartup
InstantForward
LockDevice
PKG
poutlook
SyncManager
Voice Command
Which of those are necessary, and which can be safely deleted, to shorten bootup time, reduce memory usage, etc.?
Well, I am sure that Voice Command can be removed, but I like Voice Command (when it works), so will probably keep it.
I am pretty sure that poutlook is necessary, and the BT one for BT functioning.
But what about the others?
I guess besides the apps started in the startup folder, there are other background apps, processes, services, and drivers started by registry entries. Are all of those necessary, or can some of those be safely removed as well? If yes, which ones, and where in the registry can those entries be found?
Thanks in advance for your reply.
Anyone know?
I second this. Although I think the mojority of the startup time is wasted in initializing sense.
I know you can delete
PKG
Instant Forward
POUTLOOK
SyncManager
here another thread that you can check http://forum.xda-developers.com/showthread.php?t=675987&highlight=startup
paolodoctolero said:
I know you can delete
PKG
Instant Forward
POUTLOOK
SyncManager
Click to expand...
Click to collapse
Could you explain what those four are? I don't want to delete something, without knowing what it is, whether the deletion could cause a problem, etc.
I thought Poutlook (pocket outlook) was essential, necessary for calendar, contacts, etc.
What about LockDevice? Necessary to lock the device?
SyncManager? Necessary to run ActiveSync? I don't know.
It sure would be nice to see a listing of what each of the default HD startup items actually are.
Also, besides that \Startup folder in the \Windows directory, is there a registry key in WM 6.5 for startup, like the Run key in desktop Windows registry?

Windows Live Messenger error & services.exe crash problem

* First, it’s to say sorry if my English looks not nice to you guys, I’m from Thailand.
I’ve an experience so far with a problem whenever I use Windows Live Messenger coming with standard/official ROMs (my own Mitac Mio 702, HTC Touch Pro 2 & HTC HD2). After fresh boot (soft-reset or even hard reset), opening and signing in the messenger are just fine. But it will last not more than 6-10 hours as it would be noticed that the messenger is automatically signed off or it (the messenger) may be frozen with its last session screen. And then the next sign-ins will not be success and an error widow shown on screen saying something like it couldn’t connect to internet service. And now, you need to perform soft reset in order to make it work again.
If you ever have the same situation, my trick written below might be helpful to you. If you don’t, just skip this thread.
* However, the solution is at your own risk.
I’ve noticed that the WLMService.dll or the Windows Lives Service is the key problem. Somehow, it causes the services.exe crashed/reset as you will see that the memory usage of services.exe is about zero. Normally, the services.exe should be about 2-6 MB in normal operation since your phone started. You can check the memory usage with software like MemMaid, I use FdcSoft Task Manager.
My own solution is as follows,
1. Kill the running Windows Live Messenger and any related programs. (I use FdcSoft Task Manager for doing this.)
2. Close ALL Windows Live items on the Today Screen.
3. Remove any startup programs related to the Windows Live.
4. Kill the running WLMService. You may need to stop the auto-startup and soft reset once. (I use FdcSoft Task Manager for doing this.)
5. Get into the registry and DELETE the following root keys;
HKCU\Software\Microsoft\Windows Live
HKLM\Software\Microsoft\Today\Items\Windows Live (anything related to Windows Live)
HKLM\Services\Windows Live
* You need to ensure that all keys said above are really deleted. If some item couldn’t be deleted, please re-do the step 1-4. You need to ensure that the WLMService is not loaded.
6. Install Windows Live 10.6.0034.0800 on your DEVICE (not on memory card). This version seems to be old, however, I’ve tried the newer versions but they did not cure the problem. Beside, I like this old version since it allows me to copy the typed text shown on the chatting screens.
Installing the Windows Live forces you to soft reset. But then your HD2 (or other win-mo phones) may not need to do soft reset for months like mine.
Thank you for reading & thanks for all things I’ve learned from here.

[Q] for "jwoegerbauer" about installing "autorun" manually

hi, I was hoping that you are able to help .... i am permanently mounting my my wince6 Apical AT12X gps within a replica sunvisor in my car ... i want the igoPrimo program on the gps to start as soon as the engine is running, without any interaction from me or pressing any menu buttons on the touchscreen ... so essentially, unlike most people i want to lock my device ... i do not need file or video viewers, mp3 players or games, just iGo Primo which has detailed raster maps ... youtube[dot]com/watch?v=urX3rERYZf4
looking at the MioPocket4fv installation script, a section codes adding an entry into the "init" section of the registry to detect whether an SD card is inserted, and if it is, autorun a program
this would be a good way to directly run Primo, without hacking the GPS software too much, and removal of the SD would return the GPS device's operation to factory default
can you advise what the registry settings should be if i were to do this manually ... i do not fully understand the index number concept... a screenshot of my registry is attached, i am quessing the ceSd2577 program should be stored on the NandFlash partition, and the SDMMC / sd card would have the autorun / mortscript calling primo.exe
thanks in advance from New Zealand
antdavison said:
hi, I was hoping that you are able to help .... i am permanently mounting my my wince6 Apical AT12X gps within a replica sunvisor in my car ... i want the igoPrimo program on the gps to start as soon as the engine is running, without any interaction from me or pressing any menu buttons on the touchscreen ... so essentially, unlike most people i want to lock my device ... i do not need file or video viewers, mp3 players or games, just iGo Primo which has detailed raster maps ... youtube[dot]com/watch?v=urX3rERYZf4
looking at the MioPocket4fv installation script, a section codes adding an entry into the "init" section of the registry to detect whether an SD card is inserted, and if it is, autorun a program
this would be a good way to directly run Primo, without hacking the GPS software too much, and removal of the SD would return the GPS device's operation to factory default
can you advise what the registry settings should be if i were to do this manually ... i do not fully understand the index number concept... a screenshot of my registry is attached, i am quessing the ceSd2577 program should be stored on the NandFlash partition, and the SDMMC / sd card would have the autorun / mortscript calling primo.exe
thanks in advance from New Zealand
Click to expand...
Click to collapse
Adding an SD-Autorun feature to your GPS (which is running WinCE 6.0) indeed makes sense, because the app you start via "Autorun" simply overlaps default app as was intended by OEM. Means, it doesn't hurt anything.
Now to your questions:
1. ceSD2577.exe (extracted from MioPocket 4.0 FV package) must be installed on your GPS's nandflash in <nandflash-folder>.
2. With a Windows registry editor ( use CeRegEditor ) you simply import to your GPS's registry a .REG-file you created with Notepad with contents as following:
Code:
Windows Registry Editor Version 5.00
[COLOR="Red"]<-CR Carriage Return[/COLOR]
[HKEY_LOCAL_MACHINE]
[HKEY_LOCAL_MACHINE\init]
"Launch255"="<nandflash-folder>\ceSD2577.exe" [COLOR="Red"] <- <nandflash-folder> here is placeholder for the folder you created[/COLOR]
[COLOR="Red"]<- CR Carriage Return[/COLOR]
[COLOR="Red"]<- CR Carriage Return[/COLOR]
3. On SD-card in its root create folder 2577, and put there the package containing "Autorun.exe","Autorun.mscr" & Mortscript.exe
4. If SD-card is left in GPS, everytime GPS is booted and SD-card gets initialzed, then Autorun.exe present in folder \2577 of SD-card will be executed.
thank you so much
for taking time to reply soooo quickly ... i did not really understand the launch and dependency indices, but your MP4fv code was, and suggested regedit will, be very useful ...
check out my raster maps on youtube if you have time ... new zealand government have just released hi-res (< 1m) aerial orthophotos for 95% of the country for the cost of the hard drive they send it to you on, so could be porting these to iGo Primo for years
thanks again, I am very grateful
works flawlessly, you are a genius ... thank you
the OEM menu is now totally invisible until i exit iGoPrimo
just need to make some matching green-theme splash screens for power up and iGoPrimo loading screen, and my life will be perfect
so i am looking for some "green theme" Apical menu bitmaps, the menu looks like the attached image
the 800x480 menu files i am looking for are
residentflash2-bin-Main-Fore2-*.bmp
residentflash2-bin-Main-Animate2-*.bmp
residentflash2-bin-Main-MainLayer2-*.bmp
and maybe any *.ini file relating to GPSAni*.bmp
mine (AT12/atlasVI) are all archived into a single *.bin file, which i cannot unarchive, but in earlier versions of this shell (maybe AT10/atlasV), they are separate files ... these files will give me enough menu elements to make some matching splash screens for power-on and igoPrimo load .... i don't need to modify the apical menu itself
davison[dot]antony[at]gmail[dot]com
----
hi-res aerial orthophotos in igoPrimo (150km x 130km area, <1m per pixel resolution)
youtube[dot]com/watch?v=urX3rERYZf4
understanding the launch and dependancy indices
from
austech[dot]info/gps/31080-gps-launching-program-6.html
source is
blogs[dot]msdn[dot]com/b/mikehall/archive/2007/01/04/ce-6-0-booting-processes-with-command-line-options.aspx
==================================================================================
CE based devices have a couple of options for booting applications at startup.
1. The Registry.
The first option is to use the registry to launch processes during the boot process of the device, the registry key for launching applications is HKEY_LOCAL_MACHINE\Init - the registry approach has a couple of drawbacks - the first issue is that there is a dependency chain within the boot process, processes are started and need to signal back to the o/s that the process has launched (using the SignalStarted API) so that other dependent processes can also start - here's how this looks in a snippet from a device registry.
[HKEY_LOCAL_MACHINE\init]
"Launch20"="device.dll"
"Depend20"=hex:0a,00
"Launch30"="gwes.dll"
"Depend30"=hex:14,00
"Launch50"="explorer.exe"
"Depend50"=hex:14,00, 1e,00
Take a look at the "Launch50" line, this launches "explorer.exe", the standard Windows CE shell that looks somewhat similar to the Windows desktop shell - The Explorer process has dependencies on hex:14 (20 decimal) and hex:1e (30 decimal), this maps directly to the Launch20 and Launch30 processes - explorer.exe will not be started until the processes associated with Launch20 and Launch30 are started and have signaled the o/s that that have started, an application started through the registry must call SignalStarted to allow any dependent applications to also launch - an application launched through the registry gets its launch number (50 in the case of the Explorer shell) passed as a command line parameter - this is of course passed as a string, not a number, the SignalStarted API needs to pass a DWORD value as its parameter, so a process would use SignalStarted similar to the following.
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// Do some work here...
SignalStarted(_wtol(lpCmdLine));
The second drawback is that processes launched through the HKLM\init registry key cannot be passed any additional command line options beyond the launch key value which is then passed to SignalStarted by the launched application.
2. Startup Folder
The second option is to drop your application (or a shortcut to an application) in the operating system Startup folder (this is only implemented in the Windows Explorer shell) - The code that walks the Startup folder looking for processes to start can be found here - C:\WINCE600\PUBLIC\SHELL\OAK\HPC\EXPLORER\MAIN\exp lorer.cpp - take a look at the ProcessStartupFolder() function, it should be fairly easy to lift this code and implement your own startup folder code.
The advantage of using the Startup folder is that the applications don't need to know about the boot sequence of the o/s, don't need to be aware of the launch dependency chain, and could (if a shortcut is used) be passed command line options.
The downside of using the Startup folder is that all processes within the startup folder are launched at the same time - there isn't a dependency chain, or time delta betweeen processes launching - this could be an issue in some circumstances - let me give you an example - you may want to boot a CE device image and then connect to that device image from VS 2005 (so you can deploy/debug some managed or native applications), if you were to launch ConManClient2 and CmAccept from the startup folder you would have three minutes to configure VS 2005 with the correct IP address and then connect VS 2005 to the device - you might want to delay the launch of ConmanClient2 and CmAccept until the device has a valid and active IP address.
3. (did I say there were a couple of options?) SvcStart Services Sample.
John Spaith posted on the launch issue back in December 2004 - John wrote a sample called SVCSTART whose sole purpose in life is to start other applications with a delay period that can be configured through the registry - this sample was initially added to the CE product back at CE 4.1 and is still available today in CE 6.0 - C:\WINCE600\PUBLIC\SERVERS\SDK\SAMPLES\SERVICES\SV CSTART - it could be a little fiddly to get this built/added to your o/s image if you are just getting started with CE 6.0 development.
4. Project Socrates - AutoLaunch
To assist students taking part in the ImagineCup 2007 competition (and also to make it easier for any developer to launch applications on their device with delay, command line options, and also waiting until the device has a valid IP address) Jim Wilson and I have developed a simple application called AutoLaunch - the AutoLaunch application comes in a handy Sub-Project form so can easily be added to an existing CE 6.0 workspace. The functionality is similar to the SvcStart sample written by John Spaith but does have a couple of minor differences - the first is that the AutoLaunch program is launched through the HKLM\Init registry keys (much like any typical startup process) - the registry keys for adding AutoLaunch to the startup sequence are included in the sub-project .reg file, so you don't need to worry about this.
The second difference is that the AutoLaunch process waits until the device has a valid IP address before launching any processes - the reason why this is useful is that we wanted students to use their reference boards without needing a second monitor, keyboard or mouse (in effect the device is booting headless even though the CE desktop or launch application is being displayed) - in this case we want to launch the CE Remote Display application (CERdisp.exe) on the device with the command line "-c" (connect) which then broadcasts the device IP address/name to a listening desktop CE Remote Display application.
The CE Remote Display application can be found in the CE 6.0 catalog by searching for "cerdisp", the SYSGEN for the component is (strangely enough) SYSGEN_CERDISP. The desktop CE Remote Display application can be found here - C:\WINCE600\PUBLIC\COMMON\OAK\BIN\I386\cerhost.exe [NOTE: The CE Remote Display application is not the same as RDP/Remote Desktop, although RDP is supported as a client side application on CE 6.0 (SYSGEN_RDP)].
In the sample below we're launching the CE device side Remote Display application (cerdisp) with the command line "-c" to start connected, with a timeout of 0x1388 (5000ms, 5 seconds), and also starting the CE command prompt (cmd.exe) with a delay of 0x1f40 (8000ms, 8 seconds) - it would of course be trivial to also add ConmanClient2 and CmAccept to the launch process list.
[HKEY_LOCAL_MACHINE\Startup]
"Process1"="cerdisp -c"
"Process1Delay"=dword:00001388
"Process2"="cmd"
"Process2Delay"=dword:00001f40
Here's how the desktop CERHost.exe application looks when the device boots and runs the "cerdisp -c" command - notice the name of the device and the device IP address are both displayed in the Remote Host application (the IP address being displayed here is very useful for plugging into the VS 2005 Device Properties dialog!).
And to round off the blog post here's the Remote Display application running on my Vista desktop showing the CE 6.0 desktop - note that I can now use my desktop mouse and keyboard to remotely control the CE 6.0 device!
Using AutoLaunch and the CE Remote Display for hands on labs/training that use reference boards instead of the Device Emulator may be quite useful!
antdavison said:
works flawlessly, you are a genius ... thank you
Click to expand...
Click to collapse
Glad to hear this. Thank you.

Categories

Resources