[comp.sys.apple2] Orca/Pascal programming questions

q4kx@vax5.cit.cornell.edu (Joel Sumner) (09/11/90)

Could someone please tell me which tools are started by the Orca/Pascal
call 'StartDesk(640)'?  The manual says that:
"...StartDesk initializes QuickDrawII, the event manager, the window manager,
the menu manager, the control manager, the scrap manager, the line-edit
tool, and the dialog manager."

That seems complete enough.  But I notice that Standard File is also 
active when running a program generated by Orca.  Is this reliable?  I wrote
a program that uses Std File and it works fine even though I never 
explicitly started Std File (running the program from an environment that
does not have Std File already started).

One more thing, what is the correct method for finding your MemoryID?

Since StartDesk(); does not return a Memory ID, can I find it by calling:
   MyMemoryID:=MMStartUp;

Sure, I get an ID just fine, BUT it is not the same ID as my original ID.
Using Nifty List, I checked all of my blocks and found that (for example)
I had about 10 blocks of memory allocated to ID# 1006 but when I called
   MyMemoryID:=MMStartUp, I get an ID# of 1106.  I think that may be 
royally messing things up.  How else do I find out my Memory ID?

Thanks all

-- 
Joel Sumner                     GENIE:JOEL.SUMNER     These opinions are 
q4kx@cornella.ccs.cornell.edu   q4kx@cornella         warranted for 90 days or
q4kx@vax5.cit.cornell.edu       q4kx@crnlvax5         60,000 miles.  Whichever
....................................................  comes first.
Never test for an error condition that you can't handle.