Relocating CalliGrapher from the main memory ? free up 1.2Mbytes!

Closed Thread
Results 1 to 8 of 8
  1. #1
    Mobile Deity
    Join Date
    Feb 2006
    Posts
    2,585

    Default Relocating CalliGrapher from the main memory ? free up 1.2Mbytes!

    The files the CalliGrapher install installs into \Windows total at 1.2 Mbytes and can all be either relocated to the so-called ?System Path? (more on this later), that is, to, say, the built-in File Store; or removed. This is certainly welcome news for most Calligrapher users, especially for those that have a 32/64Mbyte ROM device.

    This post applies to 8.0beta (you can participate in the beta testing program at http://www.calligrapher.net/ and download the unrestricted (it only has a date expiry lock) beta for free. Make sure you install it to alternative media (File Store/ a memory card) and not in the RAM.) users and, most probably, to 7.x users too.

    Second, get a Registry Editor with searching capabilities. For example, both the commercial Resco Registry Editor ( http://www.resco.net/pocketpc/explorer/ ) and the free PHM Registry Editor ( http://www.phm.lu/Products/PocketPC/RegEdit/ ) will do (please read my article on registry editors for more info on the registry editors available).

    Look for the string ?CgrSipStub.dll? inside the registry editor; the second hit (the InprocServer32 key) ? that is, not the first, DefaultIcon ? will be the one you need to edit:



    Click the value to edit and, say, enter a leading ?A? letter in front of the string CgrSipStub.dll. This can be anything; it?s just that you need to add some characters to the name so that the system won?t be able to find it after the next boot:



    Save and exit; reset (reboot) your device.

    Now, if you?ve already created a System Path in your PDA, you can just move the following DLL?s from \Windows to it:

    595,456 CgrImages.dll
    21,504 CgrSipLite.dll
    307,200 CgrSipStub.dll
    11,264 MacroUsr.dll
    92,672 PenMacro.dll


    If you haven?t set up your System Path yet, you may want to do it now.

    System Path is the path where the system looks for DLL?s. It?s something like the ?PATH? variable in other operating systems, but a bit more dumb (for example, you can only put DLL?s in these directories; other kinds of files won?t be recognized by the system. For example, you can?t relocate help HTML files in there ? they are also located in \Windows by default).

    By default, Windows looks for DLL?s in \Windows, which is located in main memory. Therefore, any program that copies DLL?s to \Windows will result in reduced RAM size. By adding new directories to the System Path, you can effectively move \Windows DLL?s out of main memory.

    The easiest way of modifying System Path is MemMaid. Upon enabling DLL relocation (DLL optimizer in the 4th tab), it both extends the registry key that stores the so-called System Path ([HKEY_LOCAL_MACHINE\Loader\SystemPath] ) and creates a shared DLL directory at \DLL Store in your File Store. (Incidentally, the latest version(s) of MemMaid also know one of the CalliGrapher DLL?s, CgrImages.dll, as safe to relocate.)

    If you go for the manual way of setting up your DLL store in your File Store, get your registry editor again and go edit [HKEY_LOCAL_MACHINE\Loader\SystemPath] . Just add a new row to it, now, pointing to the new directory (make sure you also create it!) you want to move your DLL?s to. An example of the values of this key:



    As you can see, it?s a multi-line value. You can freely add (or, for that matter, delete the unnecessary path information) any absolute directory paths to it. As can be seen, MemMaid has added two lines, while I added two other (the first two), one pointing to a CrEme subdirectory, the other pointing to a subdirectory named ?dlls? in my Loox File Store.

    When you?re ready with setting up the System Path, you can move the five above-listed DLL?s from \Windows to the File Store. Use for example Total Commander with the WinCE FS plug-in for this purpose.

    Once you?re done, you will want to reset the InprocServer32 value you?ve modified in the registry to its original value (that is, in our example, we just remove the leading ?A? from before it). Then, reset your device.

    Yes! You?ve done it ? you?ve moved off 1004 kbytes off the main memory!

    Some other optimizations

    CalliGrapher.htm, the help file for CalliGrapher in \Windows, links 70 cgr*.bmp files in \Windows, totalling 81 kbytes. The next step will be eliminating these files ? don?t forget that all flawors of the WindowsCE operating system (including Windows Mobile) will have serious performance problems if the number of the files in the main memory increases, along with, of course, CalliGrapher.htm. (You can also move them to a storage card if you want to browse the help file later.)

    Also, you can move CgrStart.exe (removing it doesn?t seem to have effect on how CalliGrapher works) and even CgrCpl.cpl (you can put it on a storage card and when you want to access the settings options inside it, just click it in there).

    Please note that I?ve also written some other articles giving similar relocation advice:

    Program relocation - a tutorial

    Relocate Spb Pocket Plus, one of the best Today plug-ins, into the file store

    Advanced relocation hacking
    Microsoft MVP - Mobile Devices, 2006, 2007. Also see my articles in the PPC & SP Mag Expert blog HERE.

  2. #2
    Corporate Peon
    Join Date
    Oct 2000
    Location
    Berkeley, CA
    Posts
    95

    Default

    Thanks! That was excellent. I'm always on the lookout for thinning down my OS (PocketPC and Windows).

    Maybe this can be the start of a PocketPC 'Lite' thread to remove all non-essential plugins and replace them with smaller/better applets?

    Thomas

  3. #3
    Mobile Deity
    Join Date
    Feb 2006
    Posts
    2,585

    Default

    Originally posted by Thomcat
    Thanks! That was excellent. I'm always on the lookout for thinning down my OS (PocketPC and Windows).

    Maybe this can be the start of a PocketPC 'Lite' thread to remove all non-essential plugins and replace them with smaller/better applets?

    Thomas
    There're quite a few threads like that; see for example http://discussion.brighthand.com/sho...hreadid=113915 and http://discussion.brighthand.com/sho...hreadid=110957 .

    I will also continue to post tutorials like this; my next one will focus on PPC controller apps like dotPocket etc.
    Microsoft MVP - Mobile Devices, 2006, 2007. Also see my articles in the PPC & SP Mag Expert blog HERE.

  4. #4
    Mobile Deity
    Join Date
    Aug 2001
    Location
    Hollywood, FL
    Posts
    6,864

    Thumbs up

    Tweaks2k2 owners can do this by moving the dlls above mentioned by Menneisyys to a folder called System, that is created when you use the Move Dll hack included in the program.

  5. #5
    Mobile Deity
    Join Date
    Feb 2006
    Posts
    2,585

    Default

    Originally posted by ctitanic
    Tweaks2k2 owners can do this by moving the dlls above mentioned by Menneisyys to a folder called System, that is created when you use the Move Dll hack included in the program.
    Thanks for the update on Tweaks2k2's new capabilities; I'll also include this in the next versions of my relocation tips/tutorials.
    Microsoft MVP - Mobile Devices, 2006, 2007. Also see my articles in the PPC & SP Mag Expert blog HERE.

  6. #6
    Mobile Deity
    Join Date
    Aug 2001
    Location
    Hollywood, FL
    Posts
    6,864

    Default

    Originally posted by Menneisyys
    Thanks for the update on Tweaks2k2's new capabilities; I'll also include this in the next versions of my relocation tips/tutorials.
    Thanks to you...

    BTW, I have posted a link to your article in my How To section

    http://www.tweaks2k2.com/portal/forum/index.php?forum=8

  7. #7
    Mobile Deity
    Join Date
    Feb 2006
    Posts
    2,585

    Default

    Originally posted by ctitanic
    BTW, I have posted a link to your article in my How To section

    http://www.tweaks2k2.com/portal/forum/index.php?forum=8
    thx
    Microsoft MVP - Mobile Devices, 2006, 2007. Also see my articles in the PPC & SP Mag Expert blog HERE.

  8. #8
    Mobile Deity
    Join Date
    Aug 2001
    Location
    Hollywood, FL
    Posts
    6,864

    Default

    Originally posted by Menneisyys
    thx


    I also added the link to your site to my recommended site list

 

 

Similar Threads

  1. Relocating connect2internet Pro 3.x from the main memory ? free up over 2 Mbytes!
    By Menneisyys in forum General Windows Phone (Plus Windows Mobile, Pocket PC, Smartphone)
    Replies: 4
    Last Post: 08-25-2005, 08:58 AM
  2. Relocating Pocket Informant entirely (!) from the main memory
    By Menneisyys in forum General Windows Phone (Plus Windows Mobile, Pocket PC, Smartphone)
    Replies: 13
    Last Post: 08-10-2005, 09:19 AM
  3. Fine-tuning your memory consumption ? relocating uninstall/update-time stuff
    By Menneisyys in forum General Windows Phone (Plus Windows Mobile, Pocket PC, Smartphone)
    Replies: 11
    Last Post: 08-03-2005, 06:37 PM
  4. Palm main memory vs. exapnded memory.
    By TarekAHF in forum m500 series
    Replies: 1
    Last Post: 05-29-2002, 10:19 PM
  5. How much free Main Memory should rserved to allow iPAQ to run?
    By imported_palmtree in forum iPAQ h3600-h3900 series
    Replies: 4
    Last Post: 08-13-2001, 10:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 06:43 PM.
Powered by vBulletin® Version 4.2.0
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO 3.6.0