Macintosh: Calling Resources, MultiFinder, and Desktop Calls



I am programming in the Trader Workstation application. For my current
project, I need to know if there is there a limit on the number of
resources a program can call?

The theoretical limit on the number of resources an application can open at
one time greatly exceeds the practical limits of a program. If you are not
using "owned" resources, such as resources for desk accessories, you can
have up to 32,767 of a single resource type. If each of those resources
held 1Kb of data, you would be accessing on the order of 30MB. In other
words, the limit on the number of resources you can have open at one time
is not a real limit in the way that the limit on the number of open files
is. If you are truly looking at having thousands of resources open at one
time, you need to take a hard look at the way you are doing things and
develop an alternative method for accessing data.


Published Date: Feb 18, 2012