home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 3.0 KB | 59 lines | [TEXT/CWIE] |
- /*********** All about FakeStart
- -------------------
-
- By agreement between Ken Earle and ingSOFT Ltd (Toronto Canada), all source code for
- FakeStart is released into the public domain.
-
- "FakeStart.µ" builds a small application whose only purpose is to launch some other
- application (the "real" application) into low memory. Some older applications still
- run on modern Macs, provided they aren't launched too high in memory.
-
- You'll like this app if you have an old application that still runs, but only if you
- start up enough other applications first to force that old one to be launched into
- relatively low memory. This little starter app will launch it low in one step, and
- leave all other system memory free.
-
- To produce a small "fake starter" that starts your application low in memory:
- • change the STR# 1001 string 1 resource in "FakeStart.rsrc" to the creator
- of your application (the shipped creator is 'JAGO', for an application
- called "RFDesigner™")
- • in the CodeWarrior project preferences, change the name of the final
- application to something more appropriate, eg if you intend to
- launch "Surfer" then change the name to something like "Surfer Starter"
- • use CodeWarrior ( >= CW7 ) to build your little starter application.
- (Porting to Symantec C should be easy, or even MPW for that matter.)
-
-
- To change the limit on how high into memory your real application can be launched: in
- the file "FS_Memory.c", this limit is set by "APPLICATION_LIMIT". This constant is
- #defined near the top of the file, and used in only one place in the file. It
- determines the upper limit for the application, more precisely it sets the upper
- limit for the address of the application PLUS the size of the application. In other
- words in won't let any address in the application's heap go above that number. The
- preset value for APPLICATION_LIMIT is "ABOUT_THIRTEEN_MEG", which is a safe number.
-
- Are you sure that the old application you want to start accepts the basic four
- AppleEvents correctly? If so, open up "FakeStart.h" and change
- #define APP_IS_AE_AWARE FALSE
- to
- #define APP_IS_AE_AWARE TRUE
- build your starter, and try it out by dragging a document onto it.
-
- Things are kept simple. You can drag any files you want onto the little starter app,
- but only files with the same creator as your real application will be opened. If you
- just double-click on the starter, it will start up your real application.
-
- In all cases the starter will launch your real application into low memory. With some
- systems this will confuse your "About this Macintosh" box so that free memory is
- reported as lower than what is actually available. This is a problem only with the
- Finder's "About" box, and your full memory will still be available for other
- applications.
-
- (Plug) Source for "FakeStart" was created and prettied up with EnterAct™, among the
- world's best C/C++ editors, and certainly the cheapest. Available on the Internet,
- and on CompuServe (GO MACDEV, library 13).
-
- Questions and comments are invited, please send them to
- 73073.2166@compuserve.com
- (Ken Earle)
- ************/