[comp.sys.mac.programmer] PACK 0 problem...

iron@imag.imag.fr (Francois Menneteau) (09/05/90)

When I use the list manager, the system load into memory the resource PACK 0,
which is normal.

Using info given in various TN, I have a beatiful heap which sounds like this:

    +---------------+
    |Non relocatable|(master pointers, window manager info, etc)
    |objects, code  |
    |segments and   |   (FIXED PART of my heap)
    |locked objects |
    +---------------+
    |relocatable    |
    |objects.       |
    |       ...     |
    |               |
    +---------------+

My problem is that the system seems to lock this resource, so my heap is no
more beatiful... :

    +---------------+
    |Non relocatable|
    |objects, code  |
    |segments and   |
    |locked objects |
    +---------------+
    |relocatable    |
    |objects.       |
    |       ...     |
    +---------------+
    |PACK 0 (locked)|
    +---------------+
    |       ...     |
    |relocatable    |
    |objects.       |
    |               |
    +---------------+

And since my application load resources into memory (and there are resources
which are very big, think about PCOD resources of microsoft applications,
up to 600K bytes).

SO my question is, can I unlock it at will or is it dangerous?
Or how can I load this resource to be in the fixed part of my heap?
-- 
Francois Menneteau dit iron ||  "... I had their lives in my hands
============================+|  their fate their fortune in my visions
iron@imag.imag.fr           ||  No one believed in my true prophecy
uunet.uu.net!imag!iron      ||  And now it's too late."