George, Bob,
Here it is. I have identified the issue that makes this slow behaviour. In fact this is simply the Setmenu statement. MPE menus, with submenus, and options setup is around 7 setmenu to be executed. And clearly this is what is causing the problem. I’m 100% sure about this. Now some aspect of the test are not that conclusive. Effectively I have measured that a simple setmenu on the toolbar with approximativelly 5 actions- runs at 0,035 sec ! which is quite fast. Now for some reason, when there are in-situ of the program duration is incrising – for this I have not found the reason. Nevertheless work around I found clearly shows this is the problem. But this is “work around” – tricks of old samourai – that gives the illusion it is quick, but in fact in the background setmenus are continuing. I would be glad to have your point of view on this. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Henne Sent: mardi 7 octobre 2008 22:01 To: [EMAIL PROTECTED] Subject: Re(2): [nsbasic-ce] slow response time with WM6, hp214 This is an interesting result. I think the next step would be to come up with the minimum program that has this effect, then try running it on some different devices. Can you make such a program? >Bob, >I purchased my first pda around 10 year ago which was runing CE2.11 and >this issue has always existed. >Also, Magic button is already installed on my Ipaq J just after I >purchased it. > >But typically what has shown this test is that this is not a CPU power >issue here, as the second test is made with NSbasic installed as the >first and only software installed. >As I installed also NSB 7.0.4 on my previous device, my feeling is that >it is either coming from a behaviour difference from WM2003 compare to >WM6.0 or that NSBasic behave differently with WM6.0 than it does running >WM2003. >To have a more accurate feeling somebody who has NSB 7.0.4 running a WM6 >device which is different from a HP214, install MPE, and see if it this >lag issue is also observed. > >I'm also expecting George to help clarifying. > >-----Original Message----- >From: [EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com [mailto:[EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com] On >Behalf Of Bob Katayama >Sent: dimanche 5 octobre 2008 19:18 >To: [EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com >Subject: RE: [nsbasic-ce] slow response time with WM6, hp214 > >Here is a simple test you can do with the device as is. >Install a program called magic button. >Use this exit your program each time. >See if it improves the speed. > >The Windows Mobile OS does not actually close programs but automatically >manages the memory and this is not that perfect therefore using MAGIC >BUTOON to force the closed application out of memory does the trick for me. > >http://www.trancrea <http://www.trancreative.com/mb.aspx> tive.com/mb.aspx > >Bob > >From: [EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com [mailto:[EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com] On >Behalf Of Pascal >Sent: Sunday, October 05, 2008 1:08 PM >To: [EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com; [EMAIL PROTECTED] <mailto:gh%40nsbasic.com> >Subject: RE: [nsbasic-ce] slow response time with WM6, hp214 > >Bob, George, > >Sorry to come back only now on this trail, but hard reseting your work >favourite PDA, just for a test, is something that needs to be planned >seriously... Also I discovered that to hard reset the HP214 you need to >have aliens fingers... > >I've spend nearly 8 hours over 2 days to get it done properly and have >significant result. >I remind you the issue I'm reporting on my HP214. a general feeling that >despite a very powerful processor and WM6, that it is much slower then >my old Mypal 620. >This feeling was "crystallised" around 2 specific items: >? When you click on the Sip mode (to change the input mode) this >menu takes 4 second to appear....(this sounds incredible, but it is >unfortunately and desesperately true) >? Using my favourite program Editor MPE (no more advertising J ), >when you exit from a subroutine edition box, it is again taking 4 >seconds to leave the box, where with the Asus Mypal 620 it was >instantaneous. Althought when you look at the piece of code managing > this edition exiting, you scratch your head wondering what could take >so long. Also when you pick a choice from the menu, the menu window stay >open during several second before selected action starts > >In the meantime I looked also around on internet and it was looking that >this kind of behaviour was also reported. And that a backup/restore was >fixing the issue. >Backup restore tool us SPB backup version 2.0.0 > >TEST PLAN >So I have planned the test in to steps: >Test 1 : hard reset, test general speed, and restore >Test 2 : hard reset, test general speed, install NSbasic, test general >behaviour; load MPE and test behaviour > >TEST RESULT >Test 1 hard reset, test general speed, and restore >? After the hard reset, general speed is excellent, when clicking >on the Sip mode selector, menu appears immediately >? After restoration, general behaviour looks very good there, and >surprisingly clicking on the Sip mode selector, menu appears >immediately!!! (as described on different forum) >? I run in the nsbasic test part, run mpe, load a program, edit >one function, and exit .... >? Unfortunalty the hoped miracle did not occurred and exiting the >edited function still takes 4 sec! > > Test 2 : hard reset, test general speed, install NSbasic, test general >behaviour; load MPE and test behaviour >? Hard Reset again, everything work fine >? NSBasic installation >? Start nsbasic, I'm promptet to enter the licence number, click >on the Sip mode selector (I always use the letter recognition) and here >my eyes went out of my head, it tooks 4 seconds to open it....not good. >? I continue the test, install also the few DLL required to run >MPE. I did that from the desktop IDE (7.0.5) so that the latest official >Dll are used, copy the mpe files...I have even modified MPE code to use >NSbasic.win32 Api (instead of the the old MG) but... >? Finally same behavious as usual, slow to exit from the code >edition window. > >So I have hard reset again, the Ipag and reloaded the backup. I have the >feeling that this is anyway providing a better speed. > >My gut feeling is that this may come from either a specific behaviour of >Nsbasic with this Ipaq, (as seen in the test SIP becomes slower just >after nsb install) or that this hardware/OS is slower with some part of >the system function (like registry updating or menu changes for exemple) >and affect the speed of the code compare to the Asus running WM2003. > >To give you an idea, see the part of the code below in case this help in >the debate. >X_click is the "exit" function for code edition. > >See the code : >_____________________________________ >___________________________________________________ > >Sub X_Click() > On Error Goto 0 > CheckChange > plan_Click >END Sub >_____________________________________ >___________________________________________________ > >Sub CheckChange > Dim ans > On Error resume next > If Flagchange Then > ans = MsgBox("Text Changed !" & _ > vbCrLf & "Do you want to save?",_ > 51 , "Text Save") > If ans=vbYes Then Ok_Click > End If >END Sub >_____________________________________ >___________________________________________________ >Sub PLAN_Click() > Dim i , s > On Error Goto 0 > SetMenu "Titlebar", Array("File","Item","Tools", "Option" , >LargeMenu ,"Help") > SetMenu "File", Array("New","Open||Open","Save||Save","Save as|| >Saveas", "Close", "-", "Backup","Analyse||Analyse" , "-" , "Recent >Files||RCFiles", "Exit" ) > SetMenu "Item", Array("new Chapter||newchapter", "New section|| >newSection", "New Sub||newSub", "New Function||newFunction","Delete" , >"Merge with Previous||MergePrev") > SetMenu "Help", Array("Help||Helphelp", "-","About") > SetMenu "Tools", Array("Find...||Findword", "Goto Line...||GotoLine", >"Stats" , "Interface") > > OptionMenu > > If FlagFontSize = "Off" Or FlagFontSize = "On" Then > FlagFontSize = 8 > Tree.Fontsize = FlagFontSize + 3 > Text.Fontsize = FlagFontSize > Registry.Name = "BigFontSize" > Registry.ValueType = 7 ' REG_MULTI_SZ > Registry.Value = FlagFontsize > Else > Tree.Fontsize = FlagFontSize + 3 > Text.Fontsize = FlagFontSize > End If > > For i=0 To 3 > RCfile(i) = GetRegistryVal( "RCFile" & i , "" ) > s = InStr ( 2 , RCfile(i) , "\" ) > RCfile(i) = Right( RCfile(i) , Len( RCfile(i) ) - s ) > NEXT > SetMenu "RCFiles" , Array( "1. "&RCFile(0)&"||File0" , "2. >"&RCFile(1)&"||File1" , "3. "&RCFile(2)&"||File2" , "4. "&RCFile(3)&"|| >File3" ) > Tree.Show > Usection.Show > Dchapter.Show > Sel.Show > bookMark.show > > Text.Hide > NextWord.hide > PrevFunc.hide > NextFunc.hide > bReplace.hide > bReplaceall.hide > Remark.hide >END Sub >_____________________________________ >___________________________________________________ >Sub OptionMenu() > On Error Goto 0 > Dim lFontSize > If FlagFontSize > 14 Then > lFontsize = "Max" > Else > If FlagFontSize < 6 Then > lFontsize = "Min" > Else > lFontsize = FlagFontSize > End If > End If > SetMenu "Option", Array("Sound " & FlagSound & "||Sound" , >"Font Size " & lFontSize & "||FontSize" , "Large Menu " & >FlagLargeMenu & "||LargeMenu" ) > SetMenu "FontSize" , Array( "Increase Size||FontsizeINC" ,"Decrease >Size||FontsizeDEC" ) >End Sub > >-----Original Message----- >From: [EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com [mailto:[EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com] On >Behalf Of Bob Katayama >Sent: samedi 9 août 2008 17:49 >To: [EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com; [EMAIL PROTECTED] <mailto:gh%40nsbasic.com> >Subject: RE: [nsbasic-ce] slow response time with WM6, hp214 > >I am not familiar with the HP but I am with Wm 6.0 and Windows Mobile >6.0 is much quicker over previous OS versions. Typically what I would do >with a new device is install the NS Basic runtime first before anything >else on the device. I would do a hard reset, configure the device and >install NS Basic. After installation, I would do a soft reset on the >device then install any NS Basic applications. This will insure you have >a clean device and maximum operating speed. > >Good luck. > >Bob >www.technobrains.com > > >From: [EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com [mailto:[EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com] On >Behalf Of Pascal >Sent: Saturday, August 09, 2008 10:45 AM >To: [EMAIL PROTECTED] <mailto:nsbasic-ce%40yahoogroups.com> ups.com; [EMAIL PROTECTED] <mailto:gh%40nsbasic.com> >Subject: [nsbasic-ce] slow response time with WM6, hp214 > >Hi again, >Following an issue on my Asus Mypal 620, i was forced to purchase a new >device. >I've purchase the HP Ipaq 214 running WM6 which on the paper suppose to >be a super star. > >But when I'm using usual programs that I know very well, i can feel >regular slow down. >Typical in NSB when you click on menus, it takes several seconds (4 >exaclty) to start next action. >Which is an enormous elapse time. > >Where all these functions on the mypal620 (running WM2003) where >instantaneous, without any slow down. > >So i would like to share this experience with you, knowing if you are >observing the same behaviours and figure out if something can be done. >What is causing this? >Is it because of WM6? >Is it the hardware? >May I have wrongly install NSB or the control DLL? > >Any clues? >Thanks for your experience > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en -~----------~----~----~----~------~----~------~--~---
