yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] rlmouse:
I can not reproduce this, even not with a new installation. The "OUT OF MEMORY EXCEPTION" seems to be a problem with the NET framework. The program use the Sense Interface SDK 1.39: 'SenseSDK is NOT supported under .netCF 2.0! YOU WILL GET "Out of Memory" exceptions all day long as the native drawing routines used by the SDK are resident only in .netCF 3.5!!!'

Sorry, but here I realy can't do anything.
[Windows Mobile Apps and Games] rlmouse:
@silviaccio1

Please have a look to this (translated from a German site):

Compact Net Framework 3.5 Install

Apps you've been used on other devices do not really functioning on the HD. Net Compact Framework, because the remedy. Just be sure that the version 3.5 is set as default and not 2.5. Look here: HKLM / Software / Microsoft / .NETCompactFramework

Change the DWORD entry 2.0.7045.00 from 1 to 0 Next, the DWORD entry 3.5.7283.00 change from 0 to 1. Reset then. This disables 2.0 and Activates 3.5.
[Windows Mobile Apps and Games] extrapurifier:
Two little questions!

Hi rlmouse,

could you tell with which version, profile switch dependend on Power on/off gets implemented?

And another question: When a program get started by profile activation, does it also get stoped when another profile gets activated?

Thank you!
[Windows Mobile Apps and Games] rlmouse:
I tried this, but there are only a few devices that will support this notification. This is currently not possible.

I tried this also, but closing a started program does not run correctly. I can store the started handle, but if in the meantime the program was closed manually, the handle can be given to another running program. And if profile switch starts a program, what itself starts another program (e.g. like pocket informant), it also does not work.
[Windows Mobile Apps and Games] silviaccio1:
In my FW (JD6) there is only NET CF 3.5 and is activated (dword on 1).

The NET CF 2 is not even present.

Maybe I have to reinstall it?

I have to underline that error sometime don't raise immediately but only after two or three changes of settings
[Windows Mobile Apps and Games] rlmouse:
It would be an attempt :confused: ??

If you change all this settings 2, 5 or 15 times - Profile Switch does nothing in this moment. As recently as when you leave the settings page the changed data are stored to the registry. Only the shortcut to the Start menu is saved immediately.
[Windows Mobile Apps and Games] uzi2:
Thanks. I've exported the reg keys to my XDA_UC folder
[Windows Mobile Apps and Games] silviaccio1:
So maybe could be that the memorization of changes determines the error, even if I don't think this requires so large resources.
[Windows Mobile Apps and Games] rlmouse:
It's only a combo box control. It does not memorize any changes, it only stores the current selection while exiting the page. And there is no event while changing the value. Profile Switch needs up to ~2.5MB memory while running. Unfortunately currently I don't know a solution to this problem.

Maybe someone else the same problem? For me, I can't reproduce this.
[Windows Mobile Apps and Games] peterpan911:
Thanks rlmouse, special characters was the solution.

Great app.
[Windows Mobile Apps and Games] extrapurifier:
Thank you for answering questions :)
[Windows Mobile Apps and Games] rlmouse:
Can you please tell me what character exactly is the problem? I would to add this to the existing filter.
[Windows Mobile Apps and Games] rlmouse:
I will try to add an option to any profile whitch let you select any process from the process list. Starting this profile will close (kill) them. But in the next two weeks I will be on business travel a lot, so no much time remains for this.
[Windows Mobile Apps and Games] clintyip:
I'm getting an error message as soon as I click on the Profile Switcher icon in my start menu. I've installed .NETCFv3.5 and it doesn't work. I've been through all 28 pages of this thread and I can't seem to find a solution >.<

Any ideas?
[Windows Mobile Apps and Games] rlmouse:
And the text of the error message?
[Windows Mobile Apps and Games] clintyip:
Profile Switch.exe

ArgumentException

An error message is available for this exception but cannot be displayed because these messages are optional and are not currently installed on this device. Please install ‘NETCFv35.Messages.EN.wm.cab’ for Windows Mobile 5.0 and above or ‘NETCFv35.Messages.EN.cab’ for other platforms. Restart the application to see the message.

at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)

at System.Drawing.Bitmap._Init(Int32 cx, Int32 cy)

at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

at StedySoft.SenseSDK.SensePanelMoreItem._createBufferGraphics()

at StedySoft.SenseSDK.SensePanelMoreItem.OnRender(Graphics g)

at StedySoft.SenseSDK.SenseListControl._renderGraphics()

at StedySoft.SenseSDK.SenseListControl.OnPaint(PaintEventArgs e)

at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)

at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)

at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)

at System.Windows.Forms.Application.Run(Form fm)

at ProfileSwitch.Verbindungen.Main(String[] args)
[Windows Mobile Apps and Games] rlmouse:
"System.Drawing" (PAL_ERROR) seems to be a .Net problem. Please look here: http://xdaforums.com/showpost.php?p=8447629&postcount=264

And please perform a soft reset after install the .Net 3.5. If you install the .Net after installing Profile Switch, please install Profile Switch a second time.
[Windows Mobile Apps and Games] luffyp:
Hi, I have a question regarding this change log in version 1.9.0:

[+] Autoswitch will run in the background. If you have any problems, you can play with the settings 'Set power state' and 'Restore power start'.

Does this mean even if you close the program ProfileSwitcher, its process is still running? Will it effect the battery drain?

Thanks
[Windows Mobile Apps and Games] clintyip:
Im still getting the same error after changing the stuff in the registry and resetting.

Profile Switch.exe

ArgumentException

Value does not fall within the expected range.

at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)

at System.Drawing.Bitmap._Init(Int32 cx, Int32 cy)

at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

at StedySoft.SenseSDK.SensePanelMoreItem._createBufferGraphics()

at StedySoft.SenseSDK.SensePanelMoreItem.OnRender(Graphics g)

at StedySoft.SenseSDK.SenseListControl._renderGraphics()

at StedySoft.SenseSDK.SenseListControl.OnPaint(PaintEventArgs e)

at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)

at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)

at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)

at System.Windows.Forms.Application.Run(Form fm)

at ProfileSwitch.Verbindungen.Main(String[] args)
[Windows Mobile Apps and Games] peterpan911:
Hi,

it was a /

Thanks for solving my problem
[Windows Mobile Apps and Games] alto:
great, tn'x
[Windows Mobile Apps and Games] plauze2001:
First of all I Have to say this is a great application.

Since verison 1.9 all my profiles are gone. Everytime I start the app and create new ones there are all gone with the next start of the program. How come that the profiles are not stored? Even if I backup the settings after creating the new profiles doesn't work? Anybody an idea what I am doing wrong?

Thanks and greetings

P
[Windows Mobile Apps and Games] rlmouse:
There is no process running. "Background" only means without any visible window while switching a profile automaticly.
[Windows Mobile Apps and Games] rlmouse:
What device do you use? WVGA or VGA or HVGA?
[Windows Mobile Apps and Games] clintyip:
I'm fairly certain I'm QVGA. My device is a HTC Touch Diamond 2.
[Windows Mobile Apps and Games] rlmouse:
I think it's a problem with the resolution. Please try the attached file (Extract it in your program folder)
[Windows Mobile Apps and Games] rlmouse:
Hmmm. Do you use 1.9.1.0? Can you send me a backup of your settings please?
[Windows Mobile Apps and Games] clintyip:
Still the same problem. To be exact, my resolution is 240x400.
[Windows Mobile Apps and Games] rlmouse:
Now removed resolution informations completly.
[Windows Mobile Apps and Games] clintyip:
Still same error >.< Would you think it has something to do with the icon downloads in your first post of this thread? If it is, I haven't used those icons.
[Windows Mobile Apps and Games] rlmouse:
The icons doesn't have to to anything with this problem.

Please have a look into the registry: HKLM\Software\Igs GmbH\SwitchProfile

If the values for "HeightButton" and "HeightLabel" <> 50 please change them to 50 and report the old values to me please.
[Windows Mobile Apps and Games] clintyip:
I went into HKLM\Software\Igs GmbH\SwitchProfile, but "HeightButton" and "HeightLabel" are not there.
[Windows Mobile Apps and Games] rlmouse:
Hmmmm. This is something strange. Please delete the complete Key "SwitchProfile".
[Windows Mobile Apps and Games] rlmouse:
Version 1.9.3.0 is online

Change Log:

1.9.3.0

[+] Changing the system time manually will now update the new autorun times.

[+] Changing the time zone will now also update the new autorun times.

[+] '/' in a profile name now added to filename filter.

[-+] There may be some problems after trying to run Profile Switch with an incorrect or missing .Net version. Profile Switch now will not start at the wrong version.

In the next two weeks I will be on business travel a lot. So don't worry if I don't answer any questions in this time.
[Windows Mobile Apps and Games] clintyip:
Complete key deleted, same error. I then upgraded to your new version, did the same steps as before, still same error.
[Windows Mobile Apps and Games] Homer-S:
Hi rlmouse,

I still love your software. Might it be a good idea to chat with MichelDiamond and make a knowledge exchange because you both working on nearly the same projects.

:)
[Windows Mobile Apps and Games] tonybest:
Hi!

I´ve just finished the spanish translation, revised and corrected, I hope you enjoy it!!
[Windows Mobile Apps and Games] Albator V:
Hi, first of all, many thanks for this grteat app...

You can find here the french translation updated for 1.9.3.0.

And I have, sometimes, app errors. I don't know why and when... You can find screenshots...
[Windows Mobile Apps and Games] rlmouse:
Version 1.9.4.0 is online

Change Log:

1.9.4.0

[-] Null Reference Exeption (Sometimes the registry does not update correctly).

[-] Some programs do not start with the profile.

[-] Error if no data connections found.

I think I found the solution for "Null Reference Exeption". After the first time you install this app, the default registry settings some times will not be complete.
[Windows Mobile Apps and Games] rlmouse:
Please have a look to 1.9.4.0.
[Windows Mobile Apps and Games] rlmouse:
Thanks for your translation. If you get this error again, please send me a backup file of the settings and, if enabled, the logfile. At this time I cannot reproduce this errors.
[Windows Mobile Apps and Games] android52:
rl,

Thanks for the update. I reset and re-installed everything on my phone last week before heading out of the country for a couple of days. Since then I was getting errors (and a weird times) from ProfileSwitch. As I was travelling I didn't take the time to try to troubleshoot - though it might be roaming (BTW, the dataconnections stayed off just as I hoped they would). I was still have trouble after I came back (yesterday) but after updating to 1.9.4 I haven't seen a single glitch yet. Probably the registry initialization problem which you fixed.

Thanks again for your constant updates and improvements to the app.

Cheers.
[Windows Mobile Apps and Games] rlmouse:
Version 1.9.5.0 is online

Change Log:

1.9.5.0

[-] Profile Check sometimes runs twice if the system time changed (e.g. in craddle while syncronising). In this moment it can crash.
[Windows Mobile Apps and Games] android52:
rlmouse,

Will upgrade to 1.9.5, but with 1.9.4 I am still getting seemingly random errors (i.e. at times when I wouldn't expect ProfileSwitch to run). I didn't capture the error initially, but since it just happened again here it is:

ProfileCheck.exe

IOException

An error message is available for this exception but cannot be displayed because...

at

System.IO.))Errir,WubUIErrir(Int32errordCode, String str) at System.IO.FileStream..ctor(Stringpath, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath at System.IO.FileStream..ctor(Stringpath, FileMode mode, FileAccesss access, FileShare share, Int32 bufferSize

at

System.IO.StreamWriter.CreateFile(String path, Boolean append) at System.IO.StreamWriter..ctor(Stringpath Boolean append, Encoding encoding, Int32 bufferSize)

at System.IO.StreamWriter..ctor(Stringpath Boolean append)

at

ProfileCheck.ProfileCheck.Main(String[] args)

(and yes, the duplication is intentional it is there is the error message)

Also, when clearing the error screen, at times I have to hit Quit a number of times to actually clear out the window (so error raised multiple times perhaps?)

Attached are 3 log files (last includes opening after an error, backing up the settings and closing) and a backup of my settings. I don't know if related, but I think things started to go bad after my last wipe and reset of my phone.

Regards,

android52
[Windows Mobile Apps and Games] rlmouse:
I think that's exactly this: [-] Profile Check sometimes runs twice if the system time changed (e.g. in cradle while syncronising). In this moment it can crash.
[Windows Mobile Apps and Games] android52:
Possibly, at least one of the errors was when I was charging (direct power cord, not cradled or USB'ed). I just got another (still 1.9.4) and it was likely when I was connected via USB to the computer.

I'll put on 1.9.5 and keep an eye on it.

Cheers.
[Windows Mobile Apps and Games] rlmouse:
Version 1.10.0.0 is online

Change Log:

1.10.0.0

[+] ProfileSwitch can now starts up to 3 different programs with a profile.

[+] Every Profile can store up to 5 programs/processes to close/kill.

[+] You can select different device states in a profile (also softreset).

[+] In settings you can select a profile to start if a pc-connection is detected or lost (E.g. to kill "repllog.exe" if the device is removed from cradle).

[+] Every profile can set to "Use only for autorun". For manuel switching no longer needed profiles will not more displayed in the list.

[+] Now you can adjust the time to look back if the device was turned off while starting a profile automaticly.

[+] If the device was turned off and the start time for a profile pasts, you can select "Run program if time past" in settings. In this case profile switch will start with a notification an show the profile list if the device restarts (One minute after booting).

[-] Notification "SystemTimeChanged" removed. This needs too many starts to update the next time for autorun a profile.
[Windows Mobile Apps and Games] GunnarKarlsson:
Whoa...

Nice progress! Soon this app can do everything imaginable!

thanks for the effort you put into this.

//Gunnar
[Windows Mobile Apps and Games] Albator V:
Oops I've forget to send my backup.

I've just update to 1.10.0.0 and if problem still exist, I'll send backup.

You can find here the last French translation for 1.10.0.0
[Windows Mobile Apps and Games] rlmouse:
Thank you.
[Windows Mobile Apps and Games] Albator V:
Hi rlmouse

can i have more explaination about these options :

Set power state for autoswitch

Set power state for cradle

Restore power state after autoswitch

Restore power if device is in cradle

I try to use new option to switch profil when plug or unplug to pc, but don't work. Nothing happen.

And you can find a capture about crash of profileswitchcradle.exe
[Windows Mobile Apps and Games] rlmouse:
Autoswitch will run in the background. If you have any problems while switching profile automaticly, you can play with the settings 'Set power state' and 'Restore power start'. (Set power status for and after switching a profile in or out off cradle)

Do you use active sync or the device center? (XP/Vista/Win7)

What is the exact path to Profile switch.exe?
[Windows Mobile Apps and Games] Albator V:
ActiveSync on XP

/program files/ProfileSwitch/Profile switch.exe
[Windows Mobile Apps and Games] altae:
I've got some feature requests :-)

1. Could you implement the possibility to change power settings (whether device goes into sleep mode or not)? Under certain circumstances it could be handy to be able to choose a profile which adapts the power settings to avoid sleep mode, for example if I plan to use a software that does not provide itself an option to prevent the device from going into sleep mode (switching off the screen).

2. Maybe the same concerning the backlight which is also part of the power settings.

1+2 If it was possible to not only switch sleep mode/ backlight on or off but also to determine the delay for going into sleep mode/ switching off the backlight it would be fantastic.

But even if you can't provide these options I'd like to thank you for the great software. It's really the best profil swichting application available.
[Windows Mobile Apps and Games] ppolce:
Hi rlmouse,

your work is very useful.

Do you think you can add the possibility to have different WiFi profiles (eg, DHCP on / off, different IP addresses, DNS, NetMask, etc.)?

Bye
[Windows Mobile Apps and Games] rlmouse:
Can you please use this version of ProfileSwitchCradle.exe? It creates a logfile (profileLog.txt) if an error occurs.

You must change "Profile if pc-connection off" in settings to "Don't change" before you store this new file in the program folder!
[Windows Mobile Apps and Games] rlmouse:
I think it's the same as here: http://xdaforums.com/showpost.php?p=8187665&postcount=166 Sorry, but this is not possible for me.
[Windows Mobile Apps and Games] rlmouse:
I think, the only way do do this is to reset e.g. every 20 seconds the system IdleTimer and set the device to "Full power". This will drain the battery very fast.
[Windows Mobile Apps and Games] altae:
But there are switches for this in the power settings. Uncheck them and the device won't go into sleep mode again or dim the backlight. Couldn't your software change those settings? I suppose there are some registry keys somewhere.

For backlight HKCU\ControlPanel\Backlight

For sleep mode HKLM\System\CurrentControlset\Control\Powe\Timeouts

I don't know if these are really the relevant keys. Maybe it's woth a try?
[Windows Mobile Apps and Games] ega2oo2:
New feature request

First of all, rlmouse, many thanks for your great app! As of today, the only feature that I miss in it is "temporary switch profile". As a workaround, one may suggest to "switch profile" and then schedule "profile switch once" back in some time, e.g. 1 hour, but it's obviously not very much convenient. I hope combining these two steps in one command would not be a big problem for you, as almost all functionality is already implemented.
[Windows Mobile Apps and Games] rlmouse:
Ok, I will try this. But I think there is a different between Win 6.1 and 6.5, I must check this.
[Windows Mobile Apps and Games] rlmouse:
Hmmm, why not. Like: Switch back to current settings at/in time/minutes and one additional setting: do not switch by other profiles in this timespan?
[Windows Mobile Apps and Games] rlmouse:
It seems really to work, at least on my HD2. I will add this function soon. ;)
[Windows Mobile Apps and Games] ega2oo2:
Yes, summarizing in other words: switch temporarily to other profile for certain amount of time, then restore current profile. If manual or automatic profile switch occurs in this timespan, original profile is not restored (event is cleared).
[Windows Mobile Apps and Games] altae:
Thanks for your efforts. I really appreciate this. And like I said, if it works your software will become a little bit more complete. If it doesn't it was worth a try.
[Windows Mobile Apps and Games] Albator V:
Since I use your new profilswitchcradle.exe (2 days), I have no error. :confused:

Other thing : I have 3 data connexions (Bouygues WAP, Bouygues MMS and Bouygues Internet). I can't disable the Bouygues WAP in settings, if i switch 'on' Bouygues WAP, it's always display in profil editor. on the other hand, MMS or Internet can be hide if I switch 'on' in settings.
[Windows Mobile Apps and Games] rlmouse:
???? Only added a few lines for the logfile.

Yes, I found it. The settings for the first entry are not stored in the registry.
[Windows Mobile Apps and Games] Albator V:
I'll test tomorow again...

It's work with windows 7 and windows mobile device center ?

EDIT : I can't delete this topic but I disable "Rapid Sync" option in my HD2 and cradle option work fine on windows 7 with device mobil center ;)
[Windows Mobile Apps and Games] android52:
rl,

I've been using v1.10 since you released it. I've been having some odd behaviour with Profile Switch but haven't spent the time to document it out for you.

What I've noticed.

Profile Switch doesn't seem to auto-close anymore after a Auto-Switch - but does close automatically (and is set to close after switch) when I manually select a profile.

When I "reboot" (turn off and on) the phone, the "missed autorun" message pops up, even though I only turned the phone off and then immediately back on, and not over a "autoswitch" time. I can't say this is 100% reproduceable but I believe it is.

Something on my phone is running more often then I remember things running before - I can't point to Profile Switch but it seems to happen more since going to v1.10 (i.e. coloured dots spinning in the display when I'm using other programs).

I'll try to get logs for your review. I turned on logging earlier this morning and haven't had an auto-switch or restart since.

Cheers.
[Windows Mobile Apps and Games] rlmouse:
Profile Switch only has to run automaticly if you turn on your device and one or more autoswitch are missing and the notification option is turned on. Other autoruns will only start ProfileCheck.

This seems to be a problem with old entrys in your notification queue. Please use this to check the notifications: http://code.google.com/p/hoover-ni/downloads/list

If your device is in cradle, there should be only up to two entrys (not in cradle = up to five entrys) linked to ProfileCheck. If there are more or any links to Profile Switch: Delete every entry to Profile Switch and ProfileCheck and then run ProfileCheck once manually. Do not delete any other entry you don't know!!! In this case you can need a hard reset!
[Windows Mobile Apps and Games] Albator V:
Is there a refresh profil problem in home page ?

1) if a profil is current and change something in home page (phone, wifi, BT...), current profil still display. I think that if I change something, current profil is modify so no profil will be display in home tab.

2) I create profil to start when i plug phone to pc and another one when i unplug. If i plug, profil change but is not refresh in home page and same this if i unplug.

- REQ: On HD2 (an others), we can choose between 6 ringer options : Ring, one ring only, increasingly, vibrate, vibrate and after ring, vibrate and ring. It's possible to add this in profil ?
[Windows Mobile Apps and Games] Александр:
nice..

"Start profile XXX on phone charging" most required

..or checkbox in each profile "activate only if charging"

(I want automatically synchronize my data over Wi-Fi at 2:00 AM to 3:00:AM when i sleep)
[Windows Mobile Apps and Games] Albator V:
I add the missing entry in registry. Note that if i disable all connections, 'Connections' item in home page is hide, so perfect, but when i edit profile, connections are visible but empty. ;)
[Windows Mobile Apps and Games] rlmouse:
The ProfileSwitch home page will refresh if you change any settings. But the profile select page does not refresh automaticly.

http://xdaforums.com/showpost.php?p=8043408&postcount=69
[Windows Mobile Apps and Games] rlmouse:
http://xdaforums.com/showpost.php?p=8448731&postcount=266
[Windows Mobile Apps and Games] rlmouse:
I will disable this soon. :cool: